pub enum Checkpoints {
Always,
Never,
Every(u64),
}Expand description
Which snapshots hold the engine’s state: "always", each; "never",
none, as a local view needs none; or a number n, those whose seq is a
multiple of n, as a journal keeps one now and then.
Variants§
Always
Each snapshot holds the state.
Never
No snapshot holds the state.
Every(u64)
The snapshots whose seq is a multiple of this number, 1 or more.
Implementations§
Trait Implementations§
Source§impl Clone for Checkpoints
impl Clone for Checkpoints
impl Copy for Checkpoints
Source§impl Debug for Checkpoints
impl Debug for Checkpoints
Source§impl Default for Checkpoints
impl Default for Checkpoints
Source§impl<'de> Deserialize<'de> for Checkpoints
impl<'de> Deserialize<'de> for Checkpoints
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Checkpoints
Source§impl PartialEq for Checkpoints
impl PartialEq for Checkpoints
Source§impl Serialize for Checkpoints
impl Serialize for Checkpoints
impl StructuralPartialEq for Checkpoints
Auto Trait Implementations§
impl Forget for Checkpoints
impl Freeze for Checkpoints
impl Move for Checkpoints
impl RefUnwindSafe for Checkpoints
impl Send for Checkpoints
impl Sync for Checkpoints
impl Unpin for Checkpoints
impl UnsafeUnpin for Checkpoints
impl UnwindSafe for Checkpoints
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.