#[repr(u8)]pub enum ConsistencyLevel {
DcOne = 0,
DcQuorum = 1,
DcSafeQuorum = 2,
DcEachSafeQuorum = 3,
}Expand description
Cluster consistency level applied to a single message.
The numeric values match consistency_t in the C reference.
Variants§
DcOne = 0
Wait for one replica to ack.
DcQuorum = 1
Wait for a per-DC majority.
DcSafeQuorum = 2
DcQuorum with body checksum agreement; mismatches trigger
read repair.
DcEachSafeQuorum = 3
DcSafeQuorum evaluated independently per datacenter.
Implementations§
Trait Implementations§
Source§impl Clone for ConsistencyLevel
impl Clone for ConsistencyLevel
Source§fn clone(&self) -> ConsistencyLevel
fn clone(&self) -> ConsistencyLevel
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 moreSource§impl Debug for ConsistencyLevel
impl Debug for ConsistencyLevel
Source§impl Default for ConsistencyLevel
impl Default for ConsistencyLevel
Source§fn default() -> ConsistencyLevel
fn default() -> ConsistencyLevel
Returns the “default value” for a type. Read more
Source§impl Hash for ConsistencyLevel
impl Hash for ConsistencyLevel
Source§impl PartialEq for ConsistencyLevel
impl PartialEq for ConsistencyLevel
Source§fn eq(&self, other: &ConsistencyLevel) -> bool
fn eq(&self, other: &ConsistencyLevel) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ConsistencyLevel
impl Eq for ConsistencyLevel
impl StructuralPartialEq for ConsistencyLevel
Auto Trait Implementations§
impl Freeze for ConsistencyLevel
impl RefUnwindSafe for ConsistencyLevel
impl Send for ConsistencyLevel
impl Sync for ConsistencyLevel
impl Unpin for ConsistencyLevel
impl UnsafeUnpin for ConsistencyLevel
impl UnwindSafe for ConsistencyLevel
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,
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§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.