pub trait Entry {
fn kind(&self) -> Kind;
fn apath(&self) -> Apath;
fn unix_mtime(&self) -> Option<u64>;
fn symlink_target(&self) -> Option<String>;
fn size(&self) -> Option<u64>;
fn blake2b(&self) -> Option<String>;
}
Expand description
A file, directory, or symlink stored in any tree.
To get the contents of a plain file, use ReadTree::file_contents
.
Required Methods§
fn kind(&self) -> Kind
sourcefn unix_mtime(&self) -> Option<u64>
fn unix_mtime(&self) -> Option<u64>
Return Unix-format mtime if known.
sourcefn symlink_target(&self) -> Option<String>
fn symlink_target(&self) -> Option<String>
Target of the symlink, if this is a symlink.