pub struct MacosEnumerationState { /* private fields */ }Expand description
Enumerator-scoped state that rejects duplicate items and repeated continuation cursors across multiple backend pages.
Implementations§
Source§impl MacosEnumerationState
impl MacosEnumerationState
Sourcepub fn new(container: MacosFileProviderIdentifier) -> Self
pub fn new(container: MacosFileProviderIdentifier) -> Self
Creates a fresh enumerator for one immutable container identity.
Sourcepub fn request(&self) -> Result<MacosEnumerationRequest>
pub fn request(&self) -> Result<MacosEnumerationRequest>
Returns the next backend request. Calling after the terminal page is a contract error.
§Errors
Returns an error when validation fails or an underlying backend, store, or platform operation fails.
Sourcepub fn accept_page(
&mut self,
page: MacosEnumerationPage,
) -> Result<MacosEnumerationPage>
pub fn accept_page( &mut self, page: MacosEnumerationPage, ) -> Result<MacosEnumerationPage>
Accepts one page and advances the handle-scoped continuation state.
§Errors
Returns an error when validation fails or an underlying backend, store, or platform operation fails.
Sourcepub const fn is_finished(&self) -> bool
pub const fn is_finished(&self) -> bool
Returns whether a terminal page has been accepted.
Trait Implementations§
Source§impl Clone for MacosEnumerationState
impl Clone for MacosEnumerationState
Source§fn clone(&self) -> MacosEnumerationState
fn clone(&self) -> MacosEnumerationState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for MacosEnumerationState
impl RefUnwindSafe for MacosEnumerationState
impl Send for MacosEnumerationState
impl Sync for MacosEnumerationState
impl Unpin for MacosEnumerationState
impl UnwindSafe for MacosEnumerationState
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more