pub enum RaftRole {
Follower,
PreCandidate,
Candidate,
Leader,
}Variants§
Trait Implementations§
impl Copy for RaftRole
impl Eq for RaftRole
impl StructuralPartialEq for RaftRole
Auto Trait Implementations§
impl Freeze for RaftRole
impl RefUnwindSafe for RaftRole
impl Send for RaftRole
impl Sync for RaftRole
impl Unpin for RaftRole
impl UnsafeUnpin for RaftRole
impl UnwindSafe for RaftRole
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