sys_traits

Trait FsDirEntry

Source
pub trait FsDirEntry: Debug {
    type Metadata: FsMetadataValue;

    // Required methods
    fn file_name(&self) -> Cow<'_, OsStr>;
    fn file_type(&self) -> Result<FileType>;
    fn metadata(&self) -> Result<Self::Metadata>;
    fn path(&self) -> Cow<'_, Path>;
}

Required Associated Types§

Required Methods§

Source

fn file_name(&self) -> Cow<'_, OsStr>

Source

fn file_type(&self) -> Result<FileType>

Source

fn metadata(&self) -> Result<Self::Metadata>

Source

fn path(&self) -> Cow<'_, Path>

Implementors§