pub trait EntryTrait: Debug {
    // Required methods
    fn apath(&self) -> &Apath;
    fn kind(&self) -> Kind;
    fn mtime(&self) -> OffsetDateTime;
    fn size(&self) -> Option<u64>;
    fn symlink_target(&self) -> Option<&str>;
    fn unix_mode(&self) -> UnixMode;
    fn owner(&self) -> &Owner;
}
Expand description

A description of an file, directory, or symlink in a tree, independent of whether it’s recorded in a archive (an IndexEntry), or in a source tree.

Required Methods§

source

fn apath(&self) -> &Apath

source

fn kind(&self) -> Kind

source

fn mtime(&self) -> OffsetDateTime

source

fn size(&self) -> Option<u64>

source

fn unix_mode(&self) -> UnixMode

source

fn owner(&self) -> &Owner

Trait Implementations§

source§

impl From<&dyn EntryTrait> for EntryMetadata

source§

fn from(entry: &dyn EntryTrait) -> Self

Converts to this type from the input type.
source§

impl From<&dyn EntryTrait> for KindMetadata

source§

fn from(entry: &dyn EntryTrait) -> Self

Converts to this type from the input type.

Implementors§