pub enum NetworkEvent {
NodeConnected(NodeId),
NodeDisconnected(NodeId),
NetworkPartition(HashSet<NodeId>),
QuorumLost,
QuorumRestored(HashSet<NodeId>),
}Variants§
NodeConnected(NodeId)
NodeDisconnected(NodeId)
NetworkPartition(HashSet<NodeId>)
QuorumLost
QuorumRestored(HashSet<NodeId>)
Trait Implementations§
Source§impl Clone for NetworkEvent
impl Clone for NetworkEvent
Auto Trait Implementations§
impl Forget for NetworkEvent
impl Freeze for NetworkEvent
impl Move for NetworkEvent
impl RefUnwindSafe for NetworkEvent
impl Send for NetworkEvent
impl Sync for NetworkEvent
impl Unpin for NetworkEvent
impl UnsafeUnpin for NetworkEvent
impl UnwindSafe for NetworkEvent
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