pub struct Snapshot<'a> { /* private fields */ }
Expand description
A snapshot in a backup.
Implementations§
source§impl<'a> Snapshot<'a>
impl<'a> Snapshot<'a>
sourcepub fn is_full(&self) -> bool
pub fn is_full(&self) -> bool
Returns whether the snapshot is a full backup.
A full snapshot does not depend on previous snapshots.
sourcepub fn is_incremental(&self) -> bool
pub fn is_incremental(&self) -> bool
Returns whether the snapshot is an incremental backup.
An incremental snapshot depends on all the previous incremental snapshots and the first previous full snapshot. This set of dependent snapshots is called “chain”.
sourcepub fn num_volumes(&self) -> usize
pub fn num_volumes(&self) -> usize
Returns the number of volumes contained in the snapshot.
sourcepub fn as_backup_set(&self) -> &BackupSet
pub fn as_backup_set(&self) -> &BackupSet
Returns the low level representation of the snapshot.
sourcepub fn entries(&self) -> Result<SnapshotEntries<'_>>
pub fn entries(&self) -> Result<SnapshotEntries<'_>>
Returns the files and directories present in the snapshot.
Be aware that using this functionality means that all the signature files in the current backup chain must be loaded, and this could take some time, depending on the file access provided by the backend and the signatures size.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Snapshot<'a>
impl<'a> !Send for Snapshot<'a>
impl<'a> !Sync for Snapshot<'a>
impl<'a> Unpin for Snapshot<'a>
impl<'a> !UnwindSafe for Snapshot<'a>
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