pub enum NodeRole {
Primary,
Passive,
Promoting,
Standalone,
}Expand description
Node role in the replication cluster
Variants§
Primary
Primary node - handles signing and replicates to passives
Passive
Passive node - receives replicated state, ready for failover
Promoting
Promoting - in the process of becoming primary
Standalone
Standalone - not participating in replication
Trait Implementations§
impl Copy for NodeRole
impl Eq for NodeRole
impl StructuralPartialEq for NodeRole
Auto Trait Implementations§
impl Freeze for NodeRole
impl RefUnwindSafe for NodeRole
impl Send for NodeRole
impl Sync for NodeRole
impl Unpin for NodeRole
impl UnwindSafe for NodeRole
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