Enum jopemachine_raft::StateRole
source · pub enum StateRole {
Follower,
Candidate,
Leader,
PreCandidate,
}
Expand description
The role of the node.
Variants§
Follower
The node is a follower of the leader.
Candidate
The node could become a leader.
Leader
The node is a leader.
PreCandidate
The node could become a candidate, if prevote
is enabled.
Trait Implementations§
source§impl PartialEq for StateRole
impl PartialEq for StateRole
impl Copy for StateRole
impl Eq for StateRole
impl StructuralPartialEq for StateRole
Auto Trait Implementations§
impl RefUnwindSafe for StateRole
impl Send for StateRole
impl Sync for StateRole
impl Unpin for StateRole
impl UnwindSafe for StateRole
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