Struct conserve::Archive
[−]
[src]
pub struct Archive { /* fields omitted */ }
An archive holding backup material.
Methods
impl Archive
[src]
fn create<P: AsRef<Path>>(path: P) -> Result<Archive>
[src]
Make a new directory to hold an archive, and write the header.
fn open<P: AsRef<Path>>(path: P, report: &Report) -> Result<Archive>
[src]
Open an existing archive.
Checks that the header is correct.
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.
Trait Implementations
impl Clone for Archive
[src]
fn clone(&self) -> Archive
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more