pub struct AsyncDirectoryStream { /* private fields */ }Expand description
Type-erased asynchronous directory enumeration handle.
The stream validates each provider entry before yielding it and preserves terminal state across asynchronous calls.
§Examples
let mut stream = filesystem.list(&qubit_fs::directory::ListScope::Path(root.clone()), ListOptions::default()).await?;
while let Some(entry) = stream.next_entry_async().await? {
println!("{}", entry.path);
}Implementations§
Source§impl AsyncDirectoryStream
impl AsyncDirectoryStream
Sourcepub const fn state(&self) -> DirectoryStreamState
pub const fn state(&self) -> DirectoryStreamState
Returns the current lifecycle state of this stream.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for AsyncDirectoryStream
impl !Sync for AsyncDirectoryStream
impl !UnwindSafe for AsyncDirectoryStream
impl Freeze for AsyncDirectoryStream
impl Send for AsyncDirectoryStream
impl Unpin for AsyncDirectoryStream
impl UnsafeUnpin for AsyncDirectoryStream
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