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§
Implementations§
source§impl SnapshotType
impl SnapshotType
pub fn is_full_snapshot(&self) -> bool
pub fn is_incremental_snapshot(&self) -> bool
Trait Implementations§
source§impl Clone for SnapshotType
impl Clone for SnapshotType
source§fn clone(&self) -> SnapshotType
fn clone(&self) -> SnapshotType
Returns a copy 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<SnapshotType> for SnapshotType
impl PartialEq<SnapshotType> for SnapshotType
source§fn eq(&self, other: &SnapshotType) -> bool
fn eq(&self, other: &SnapshotType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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§
source§impl<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,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.