Trait conserve::WriteTree

source ·
pub trait WriteTree {
    fn finish(&mut self) -> Result<()>;
    fn write_dir(&mut self, entry: &dyn Entry) -> Result<()>;
    fn write_symlink(&mut self, entry: &dyn Entry) -> Result<()>;
    fn write_file(
        &mut self,
        entry: &dyn Entry,
        content: &mut dyn Read
    ) -> Result<()>; }
Expand description

A tree open for writing, either local or an an archive.

This isn’t a sub-trait of ReadTree since a backup band can’t be read while writing is still underway.

Entries must be written in Apath order, since that’s a requirement of the index.

Required Methods§

Implementors§