Trait conserve::Entry

source ·
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§

Return apath relative to the top of the tree.

Return Unix-format mtime if known.

Target of the symlink, if this is a symlink.

Size of the file, if it is a file. None for directories and symlinks.

Hash of the whole file, if it is a file.

Implementors§