pub struct ReadyFolder { /* private fields */ }Expand description
A folder whose children are already known.
Implementations§
Source§impl ReadyFolder
impl ReadyFolder
Sourcepub fn new(metadata: ContentMetadata, entries: Vec<ContentEntry>) -> Self
pub fn new(metadata: ContentMetadata, entries: Vec<ContentEntry>) -> Self
Wraps already-enumerated entries under metadata.
Sourcepub fn handle(self) -> ContentFolderRef
pub fn handle(self) -> ContentFolderRef
A shared handle to this folder.
Trait Implementations§
Source§impl ContentFolder for ReadyFolder
impl ContentFolder for ReadyFolder
Source§fn metadata(&self) -> ContentMetadata
fn metadata(&self) -> ContentMetadata
What the provider states about this folder.
Source§fn entries(&self) -> ContentFuture<'_, Result<Vec<ContentEntry>, ContentError>>
fn entries(&self) -> ContentFuture<'_, Result<Vec<ContentEntry>, ContentError>>
The immediate children.
Source§fn stream_files(&self) -> Option<ContentStreamRef>
fn stream_files(&self) -> Option<ContentStreamRef>
A provider-native stream over every file in the tree, when the provider
discovers files incrementally. Providers that enumerate eagerly return
None and folder_files walks them instead.Auto Trait Implementations§
impl !Freeze for ReadyFolder
impl !RefUnwindSafe for ReadyFolder
impl !Send for ReadyFolder
impl !Sync for ReadyFolder
impl !UnwindSafe for ReadyFolder
impl Unpin for ReadyFolder
impl UnsafeUnpin for ReadyFolder
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