pub struct MacosEnumerationPage { /* private fields */ }Expand description
Owned, validated page returned to the Swift enumerator.
Implementations§
Source§impl MacosEnumerationPage
impl MacosEnumerationPage
Sourcepub fn from_backend(
root_key: &CloudItemKey,
parent: &CloudItemKey,
page: CloudItemPage,
) -> Result<Self>
pub fn from_backend( root_key: &CloudItemKey, parent: &CloudItemKey, page: CloudItemPage, ) -> Result<Self>
Validates a backend page against the exact domain root and requested parent before exposing it to File Provider.
§Errors
Returns an error when validation fails or an underlying backend, store, or platform operation fails.
Sourcepub fn items(&self) -> &[MacosFileProviderItem]
pub fn items(&self) -> &[MacosFileProviderItem]
Returns items in backend enumeration order.
Sourcepub fn into_parts(self) -> (Vec<MacosFileProviderItem>, Option<PageCursor>)
pub fn into_parts(self) -> (Vec<MacosFileProviderItem>, Option<PageCursor>)
Consumes the page into owned items and continuation cursor.
Trait Implementations§
Source§impl Clone for MacosEnumerationPage
impl Clone for MacosEnumerationPage
Source§fn clone(&self) -> MacosEnumerationPage
fn clone(&self) -> MacosEnumerationPage
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 moreSource§impl Debug for MacosEnumerationPage
impl Debug for MacosEnumerationPage
Source§impl PartialEq for MacosEnumerationPage
impl PartialEq for MacosEnumerationPage
impl Eq for MacosEnumerationPage
impl StructuralPartialEq for MacosEnumerationPage
Auto Trait Implementations§
impl Freeze for MacosEnumerationPage
impl RefUnwindSafe for MacosEnumerationPage
impl Send for MacosEnumerationPage
impl Sync for MacosEnumerationPage
impl Unpin for MacosEnumerationPage
impl UnwindSafe for MacosEnumerationPage
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