pub struct SnapshotChain { /* private fields */ }Expand description
Snapshot chain for incremental backups
Implementations§
Source§impl SnapshotChain
impl SnapshotChain
Sourcepub fn add(&mut self, snapshot: SnapshotMeta)
pub fn add(&mut self, snapshot: SnapshotMeta)
Add a snapshot to the chain
Sourcepub fn latest(&self) -> Option<&SnapshotMeta>
pub fn latest(&self) -> Option<&SnapshotMeta>
Get the latest snapshot
Sourcepub fn chain(&self) -> &[SnapshotMeta]
pub fn chain(&self) -> &[SnapshotMeta]
Get the full chain for recovery
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SnapshotChain
impl RefUnwindSafe for SnapshotChain
impl Send for SnapshotChain
impl Sync for SnapshotChain
impl Unpin for SnapshotChain
impl UnwindSafe for SnapshotChain
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