pub enum PeerCheck {
OneLying(u32),
BothLying,
UnresponsivePeer(u32),
BothUnresponsivePeers,
}Expand description
Helper enum to express the different possibilities under find_who_is_lying
Variants§
OneLying(u32)
One peer is lying
BothLying
Both peers are lying
UnresponsivePeer(u32)
One peer is unresponsive
BothUnresponsivePeers
Both peers are unresponsive
Auto Trait Implementations§
impl Freeze for PeerCheck
impl RefUnwindSafe for PeerCheck
impl Send for PeerCheck
impl Sync for PeerCheck
impl Unpin for PeerCheck
impl UnwindSafe for PeerCheck
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