Trait conserve::Entry
[−]
[src]
pub trait Entry { fn kind(&self) -> Kind; fn apath(&self) -> Apath; fn unix_mtime(&self) -> Option<u64>; fn symlink_target(&self) -> Option<String>; }
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
fn apath(&self) -> Apath
Return apath relative to the top of the tree.
fn unix_mtime(&self) -> Option<u64>
Return Unix-format mtime if known.
fn symlink_target(&self) -> Option<String>
Target of the symlink, if this is a symlink.
Implementors
impl Entry for IndexEntry
impl Entry for Entry