Skip to main content

DirectoryStreamExt

Trait DirectoryStreamExt 

Source
pub trait DirectoryStreamExt {
    // Required method
    fn collect_entries(self) -> FsResult<Vec<DirEntry>>;
}
Expand description

Convenience methods for directory streams.

Required Methods§

Source

fn collect_entries(self) -> FsResult<Vec<DirEntry>>

Collects all remaining entries.

§Returns

Entries produced by the stream.

§Errors

Returns crate::FsError when listing fails before the stream ends.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl DirectoryStreamExt for Box<dyn DirectoryStream>

Implementors§