pub struct DirectoryStream { /* private fields */ }Expand description
Type-erased synchronous directory enumeration handle.
The stream validates every provider entry against the requested root and listing options before returning it to the caller.
§Examples
This helper demonstrates the normal bounded-listing workflow without requiring a concrete provider in the documentation build.
let mut stream = filesystem.list(&qubit_fs::directory::ListScope::Path(root.clone()), ListOptions::default())?;
while let Some(entry) = stream.next_entry()? {
println!("{}", entry.path);
}Implementations§
Source§impl DirectoryStream
impl DirectoryStream
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 DirectoryStream
impl !Sync for DirectoryStream
impl !UnwindSafe for DirectoryStream
impl Freeze for DirectoryStream
impl Send for DirectoryStream
impl Unpin for DirectoryStream
impl UnsafeUnpin for DirectoryStream
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