Struct conserve::Archive
[−]
[src]
pub struct Archive { /* fields omitted */ }
Methods
impl Archive
[src]
fn init(path: &Path) -> Result<Archive>
[src]
Make a new directory to hold an archive, and write the header.
fn open(path: &Path, 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.
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]
fn create_band(self: &Archive, report: &Report) -> Result<Band>
[src]
Make a new band. Bands are numbered sequentially.
fn open_band(&self, band_id: &BandId, report: &Report) -> Result<Band>
[src]
Open a specific named band.
fn open_band_or_last(
&self,
band_id: &Option<BandId>,
report: &Report
) -> Result<Band>
[src]
&self,
band_id: &Option<BandId>,
report: &Report
) -> Result<Band>
Open a band if specified, or the last.
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