pub enum SnapshotType {
FullSnapshot,
IncrementalSnapshot(Slot),
}
Expand description
Snapshots come in two flavors, Full and Incremental. The IncrementalSnapshot has a Slot field, which is the incremental snapshot base slot.
Variants
FullSnapshot
IncrementalSnapshot(Slot)
Implementations
sourceimpl SnapshotType
impl SnapshotType
pub fn is_full_snapshot(&self) -> bool
pub fn is_incremental_snapshot(&self) -> bool
Trait Implementations
sourceimpl Clone for SnapshotType
impl Clone for SnapshotType
sourcefn clone(&self) -> SnapshotType
fn clone(&self) -> SnapshotType
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for SnapshotType
impl Debug for SnapshotType
sourceimpl PartialEq<SnapshotType> for SnapshotType
impl PartialEq<SnapshotType> for SnapshotType
sourcefn eq(&self, other: &SnapshotType) -> bool
fn eq(&self, other: &SnapshotType) -> bool
impl Copy for SnapshotType
impl Eq for SnapshotType
impl StructuralEq for SnapshotType
impl StructuralPartialEq for SnapshotType
Auto Trait Implementations
impl RefUnwindSafe for SnapshotType
impl Send for SnapshotType
impl Sync for SnapshotType
impl Unpin for SnapshotType
impl UnwindSafe for SnapshotType
Blanket Implementations
sourceimpl<T> AbiExample for T
impl<T> AbiExample for T
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.