Skip to main content

DirSource

Trait DirSource 

Source
pub trait DirSource {
    // Required method
    fn list_dir(&self, path: &Path) -> Result<Vec<EntryInfo>>;
}
Expand description

The seam from which the model obtains directory listings.

Implementations must return entries in arbitrary order; the model sorts.

Required Methods§

Source

fn list_dir(&self, path: &Path) -> Result<Vec<EntryInfo>>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§