#[repr(u8)]pub enum ConsistencyMode {
MultiWriter = 0,
SingleWriter = 1,
AppendOnly = 2,
}Expand description
A domain’s immutable replicated write policy.
Variants§
MultiWriter = 0
Every endpoint with WRITE may author data commits.
SingleWriter = 1
Only the control state’s designated writer may author data commits.
AppendOnly = 2
Writers may only create immutable records once.
Trait Implementations§
Source§impl Clone for ConsistencyMode
impl Clone for ConsistencyMode
Source§fn clone(&self) -> ConsistencyMode
fn clone(&self) -> ConsistencyMode
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 ConsistencyMode
impl Debug for ConsistencyMode
Source§impl<'bytes, Ctx> Decode<'bytes, Ctx> for ConsistencyMode
impl<'bytes, Ctx> Decode<'bytes, Ctx> for ConsistencyMode
Source§impl<Ctx> Encode<Ctx> for ConsistencyMode
impl<Ctx> Encode<Ctx> for ConsistencyMode
Source§impl PartialEq for ConsistencyMode
impl PartialEq for ConsistencyMode
impl Copy for ConsistencyMode
impl Eq for ConsistencyMode
impl StructuralPartialEq for ConsistencyMode
Auto Trait Implementations§
impl Freeze for ConsistencyMode
impl RefUnwindSafe for ConsistencyMode
impl Send for ConsistencyMode
impl Sync for ConsistencyMode
impl Unpin for ConsistencyMode
impl UnwindSafe for ConsistencyMode
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> RecordKey for T
impl<T> RecordKey for T
§fn encode_key(&self) -> Result<Vec<u8>, RecordError>
fn encode_key(&self) -> Result<Vec<u8>, RecordError>
Encodes this key into its unique durable representation.
§fn decode_key(bytes: &[u8]) -> Result<T, RecordError>
fn decode_key(bytes: &[u8]) -> Result<T, RecordError>
Strictly decodes a key from its unique durable representation.