pub enum SnapshotType {
Diff,
FullCompleted,
Pending,
}Expand description
Classifications of different snapshot files (used in conjunction with SnapshotSet)
Variants§
Diff
A differential snapshot containing set and unset operations in sequence. Used for write-ahead-log snapshot files.
FullCompleted
A full snapshot containing all key-value pairs at a given point in time, assessed as complete and up-to-date i.e. the latest snapshot of this type.
Pending
A snapshot that did not complete successfully, e.g. due to a power failure or process panic. This snapshot is incomplete and should not be used.
Trait Implementations§
Source§impl Clone for SnapshotType
impl Clone for SnapshotType
Source§fn clone(&self) -> SnapshotType
fn clone(&self) -> SnapshotType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SnapshotType
impl Debug for SnapshotType
Source§impl PartialEq for SnapshotType
impl PartialEq for SnapshotType
impl Copy for SnapshotType
impl StructuralPartialEq for SnapshotType
Auto Trait Implementations§
impl Freeze for SnapshotType
impl RefUnwindSafe for SnapshotType
impl Send for SnapshotType
impl Sync for SnapshotType
impl Unpin for SnapshotType
impl UnwindSafe for SnapshotType
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