#[non_exhaustive]pub enum WriteConsistency {
Local,
All {
timeout: Duration,
},
Majority {
timeout: Duration,
},
From {
n: usize,
timeout: Duration,
},
}Expand description
Phase 8.D — typed consistency levels with timeouts. The current
in-process Replicator runs every operation as Local (single-node
store); cross-node All/Majority/From(n) semantics activate
once Phase 6 gossip lands.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Implementations§
Trait Implementations§
Source§impl Clone for WriteConsistency
impl Clone for WriteConsistency
Source§fn clone(&self) -> WriteConsistency
fn clone(&self) -> WriteConsistency
Returns a duplicate 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 WriteConsistency
impl Debug for WriteConsistency
Source§impl PartialEq for WriteConsistency
impl PartialEq for WriteConsistency
impl Copy for WriteConsistency
impl Eq for WriteConsistency
impl StructuralPartialEq for WriteConsistency
Auto Trait Implementations§
impl Freeze for WriteConsistency
impl RefUnwindSafe for WriteConsistency
impl Send for WriteConsistency
impl Sync for WriteConsistency
impl Unpin for WriteConsistency
impl UnsafeUnpin for WriteConsistency
impl UnwindSafe for WriteConsistency
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