Struct conserve::StoredTree
source · pub struct StoredTree { /* private fields */ }
Expand description
Read index and file contents for a version stored in the archive.
Implementations§
source§impl StoredTree
impl StoredTree
sourcepub fn open_last(archive: &Archive) -> Result<StoredTree>
pub fn open_last(archive: &Archive) -> Result<StoredTree>
Open the last complete version in the archive.
sourcepub fn open_version(archive: &Archive, band_id: &BandId) -> Result<StoredTree>
pub fn open_version(archive: &Archive, band_id: &BandId) -> Result<StoredTree>
Open a specified version.
It’s an error if it’s not complete.
sourcepub fn open_incomplete_version(
archive: &Archive,
band_id: &BandId
) -> Result<StoredTree>
pub fn open_incomplete_version(
archive: &Archive,
band_id: &BandId
) -> Result<StoredTree>
Open a specified version.
This function allows opening incomplete versions, which might contain only a partial copy of the source tree, or maybe nothing at all.
pub fn with_excludes(self, excludes: GlobSet) -> StoredTree
pub fn band(&self) -> &Band
pub fn archive(&self) -> &Archive
pub fn is_closed(&self) -> Result<bool>
pub fn validate(&self) -> Result<()>
Trait Implementations§
source§impl Debug for StoredTree
impl Debug for StoredTree
source§impl ReadTree for StoredTree
impl ReadTree for StoredTree
source§fn iter_entries(&self, report: &Report) -> Result<Iter>
fn iter_entries(&self, report: &Report) -> Result<Iter>
Return an iter of index entries in this stored tree.