Struct conserve::test_fixtures::ScratchArchive
[−]
[src]
pub struct ScratchArchive { /* fields omitted */ }
A temporary archive, deleted when it goes out of scope.
The ScratchArchive can be treated as an Archive.
Methods
impl ScratchArchive
[src]
fn new() -> ScratchArchive
[src]
fn path(&self) -> &Path
[src]
fn archive_dir_str(&self) -> &str
[src]
fn setup_incomplete_empty_band(&self)
[src]
fn store_two_versions(&self)
[src]
Methods from Deref<Target = Archive>
fn iter_bands_unsorted(self: &Archive) -> Result<IterBands>
[src]
Returns a iterator of ids for bands currently present, in arbitrary order.
fn list_bands(self: &Archive) -> Result<Vec<BandId>>
[src]
Returns a vector of band ids, in sorted order from first to last.
fn path(self: &Archive) -> &Path
[src]
Returns the top-level directory for the archive.
The top-level directory contains a CONSERVE
header file, and zero or more
band directories.
fn last_band_id(self: &Archive) -> Result<BandId>
[src]
Return the BandId
of the highest-numbered band, or ArchiveEmpty,
or an Err if any occurred reading the directory.
fn last_complete_band(self: &Archive) -> Result<Band>
[src]
Return the last completely-written band id.
fn report(&self) -> &Report
[src]
Return the Report that counts operations on this Archive and objects descended from it.