pub struct Band { /* private fields */ }
Expand description
Each backup makes a new band
containing an index directory.
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.
pub fn create_with_flags( archive: &Archive, format_flags: &[Cow<'static, str>] ) -> Result<Band>
sourcepub fn close(&self, index_hunk_count: u64) -> Result<()>
pub fn close(&self, index_hunk_count: u64) -> 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 the band with the given id.
pub fn is_closed(&self) -> Result<bool>
pub fn id(&self) -> BandId
sourcepub fn band_format_version(&self) -> Option<&str>
pub fn band_format_version(&self) -> Option<&str>
Get the minimum supported version for this band.
sourcepub fn format_flags(&self) -> &[Cow<'static, str>]
pub fn format_flags(&self) -> &[Cow<'static, str>]
Get the format flags in this band, from [flags].
pub fn index_builder(&self) -> IndexWriter
pub fn validate(&self) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Band
impl Send for Band
impl Sync for Band
impl Unpin for Band
impl !UnwindSafe for Band
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more