Enum cluster_mode::InstanceMode
source · pub enum InstanceMode {
Inactive,
Primary,
Secondary,
}
Expand description
Status of a node/instance
Variants
Inactive
Haven’t joined to any cluster yet
Primary
Current node is acting as a primary/leader
Secondary
It’s a Secondary node
Auto Trait Implementations
impl RefUnwindSafe for InstanceMode
impl Send for InstanceMode
impl Sync for InstanceMode
impl Unpin for InstanceMode
impl UnwindSafe for InstanceMode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more