pub struct Band {
pub index_dir_path: PathBuf,
/* private fields */
}
Expand description
All backup data is stored in a band.
Fields§
§index_dir_path: PathBuf
Implementations§
source§impl Band
impl Band
sourcepub fn create(archive: &Archive) -> Result<Band>
pub fn create(archive: &Archive) -> Result<Band>
Make a new band (and its on-disk directory).
The Band gets the next id after those that already exist.
sourcepub fn close(&self, report: &Report) -> Result<()>
pub fn close(&self, report: &Report) -> Result<()>
Mark this band closed: no more blocks should be written after this.
sourcepub fn open(archive: &Archive, band_id: &BandId) -> Result<Band>
pub fn open(archive: &Archive, band_id: &BandId) -> Result<Band>
Open a given band, or by default the latest complete backup in the archive.
pub fn is_closed(&self) -> Result<bool>
pub fn path(&self) -> &Path
pub fn id(&self) -> BandId
pub fn index_builder(&self) -> IndexBuilder
pub fn index(&self) -> ReadIndex
sourcepub fn get_info(&self, report: &Report) -> Result<Info>
pub fn get_info(&self, report: &Report) -> Result<Info>
Return info about the state of this band.
sourcepub fn get_disk_size(&self) -> Result<u64>
pub fn get_disk_size(&self) -> Result<u64>
Get the total size in bytes of files stored for this band.
Not very useful at the moment as it doesn’t include the blocks.