pub enum RotationPendingState {
Candidate {
generation: u64,
},
LocalCommitted {
generation: u64,
},
PeerCommitted {
generation: u64,
},
CandidateAndPeer {
candidate_generation: u64,
peer_generation: u64,
},
LocalCommittedAndPeer {
local_generation: u64,
peer_generation: u64,
},
}Variants§
Trait Implementations§
Source§impl Clone for RotationPendingState
impl Clone for RotationPendingState
Source§fn clone(&self) -> RotationPendingState
fn clone(&self) -> RotationPendingState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RotationPendingState
impl Debug for RotationPendingState
Source§impl PartialEq for RotationPendingState
impl PartialEq for RotationPendingState
impl Copy for RotationPendingState
impl Eq for RotationPendingState
impl StructuralPartialEq for RotationPendingState
Auto Trait Implementations§
impl Freeze for RotationPendingState
impl RefUnwindSafe for RotationPendingState
impl Send for RotationPendingState
impl Sync for RotationPendingState
impl Unpin for RotationPendingState
impl UnsafeUnpin for RotationPendingState
impl UnwindSafe for RotationPendingState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.