enum ElectionState {
WaitingForElection,
Coordinator,
Follower,
}
Variants§
Trait Implementations§
source§impl Debug for ElectionState
impl Debug for ElectionState
source§impl PartialEq for ElectionState
impl PartialEq for ElectionState
impl StructuralPartialEq for ElectionState
Auto Trait Implementations§
impl Freeze for ElectionState
impl RefUnwindSafe for ElectionState
impl Send for ElectionState
impl Sync for ElectionState
impl Unpin for ElectionState
impl UnwindSafe for ElectionState
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