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