pub enum ConsensusTimeout {
Election,
Heartbeat(ServerId),
}
Expand description
Consensus timeout types.
Variants§
Trait Implementations§
Source§impl Clone for ConsensusTimeout
impl Clone for ConsensusTimeout
Source§fn clone(&self) -> ConsensusTimeout
fn clone(&self) -> ConsensusTimeout
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 ConsensusTimeout
impl Debug for ConsensusTimeout
Source§impl Hash for ConsensusTimeout
impl Hash for ConsensusTimeout
Source§impl PartialEq for ConsensusTimeout
impl PartialEq for ConsensusTimeout
impl Copy for ConsensusTimeout
impl Eq for ConsensusTimeout
impl StructuralPartialEq for ConsensusTimeout
Auto Trait Implementations§
impl Freeze for ConsensusTimeout
impl RefUnwindSafe for ConsensusTimeout
impl Send for ConsensusTimeout
impl Sync for ConsensusTimeout
impl Unpin for ConsensusTimeout
impl UnwindSafe for ConsensusTimeout
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