pub enum DurabilityLevel {
GroupCommit,
LeaderDisk,
Quorum,
}Expand description
Durability guarantee attached to a committed command.
Variants§
GroupCommit
Standalone shared-WAL group commit (fsync before acknowledge).
LeaderDisk
Replicated: leader-local disk only (optional lower guarantee).
Quorum
Replicated: persisted by a quorum (the replicated default, RPO 0).
Trait Implementations§
Source§impl Clone for DurabilityLevel
impl Clone for DurabilityLevel
Source§fn clone(&self) -> DurabilityLevel
fn clone(&self) -> DurabilityLevel
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DurabilityLevel
Source§impl Debug for DurabilityLevel
impl Debug for DurabilityLevel
Source§impl<'de> Deserialize<'de> for DurabilityLevel
impl<'de> Deserialize<'de> for DurabilityLevel
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for DurabilityLevel
Source§impl Hash for DurabilityLevel
impl Hash for DurabilityLevel
Source§impl PartialEq for DurabilityLevel
impl PartialEq for DurabilityLevel
Source§impl Serialize for DurabilityLevel
impl Serialize for DurabilityLevel
impl StructuralPartialEq for DurabilityLevel
Auto Trait Implementations§
impl Freeze for DurabilityLevel
impl RefUnwindSafe for DurabilityLevel
impl Send for DurabilityLevel
impl Sync for DurabilityLevel
impl Unpin for DurabilityLevel
impl UnsafeUnpin for DurabilityLevel
impl UnwindSafe for DurabilityLevel
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