pub enum ReplicationRole {
Standalone,
Primary,
Replica,
}Expand description
Node role for the [replication] subsystem.
Variants§
Standalone
Default. Replication subsystem dormant; behaves like pre-v3.
Primary
This node accepts writes and streams mutations to replicas.
Replica
This node connects to a primary and mirrors its keyspace read-only.
Implementations§
Trait Implementations§
Source§impl Clone for ReplicationRole
impl Clone for ReplicationRole
Source§fn clone(&self) -> ReplicationRole
fn clone(&self) -> ReplicationRole
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 ReplicationRole
Source§impl Debug for ReplicationRole
impl Debug for ReplicationRole
Source§impl Default for ReplicationRole
impl Default for ReplicationRole
Source§fn default() -> ReplicationRole
fn default() -> ReplicationRole
Returns the “default value” for a type. Read more
impl Eq for ReplicationRole
Source§impl PartialEq for ReplicationRole
impl PartialEq for ReplicationRole
impl StructuralPartialEq for ReplicationRole
Auto Trait Implementations§
impl Freeze for ReplicationRole
impl RefUnwindSafe for ReplicationRole
impl Send for ReplicationRole
impl Sync for ReplicationRole
impl Unpin for ReplicationRole
impl UnsafeUnpin for ReplicationRole
impl UnwindSafe for ReplicationRole
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