pub enum LockConsistency {
One,
Quorum,
EachQuorum,
All,
}Expand description
Linearizable-capable consistency labels for lock/CAS operations.
Variants§
One
A single replica; rejected for lock/CAS operations.
Quorum
Quorum-applied command.
EachQuorum
Each quorum-applied command.
All
All replicas applied the command.
Trait Implementations§
Source§impl Clone for LockConsistency
impl Clone for LockConsistency
Source§fn clone(&self) -> LockConsistency
fn clone(&self) -> LockConsistency
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 LockConsistency
Source§impl Debug for LockConsistency
impl Debug for LockConsistency
Source§impl Default for LockConsistency
impl Default for LockConsistency
Source§fn default() -> LockConsistency
fn default() -> LockConsistency
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LockConsistency
impl<'de> Deserialize<'de> for LockConsistency
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 LockConsistency
Source§impl PartialEq for LockConsistency
impl PartialEq for LockConsistency
Source§fn eq(&self, other: &LockConsistency) -> bool
fn eq(&self, other: &LockConsistency) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for LockConsistency
impl Serialize for LockConsistency
impl StructuralPartialEq for LockConsistency
Auto Trait Implementations§
impl Freeze for LockConsistency
impl RefUnwindSafe for LockConsistency
impl Send for LockConsistency
impl Sync for LockConsistency
impl Unpin for LockConsistency
impl UnsafeUnpin for LockConsistency
impl UnwindSafe for LockConsistency
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