pub enum P2pNetworkEvent {
PeerConnected(ConnectionId, PeerId),
PeerDisconnected(ConnectionId, PeerId),
Continue,
}Variants§
Trait Implementations§
Source§impl Debug for P2pNetworkEvent
impl Debug for P2pNetworkEvent
Source§impl PartialEq for P2pNetworkEvent
impl PartialEq for P2pNetworkEvent
impl Eq for P2pNetworkEvent
impl StructuralPartialEq for P2pNetworkEvent
Auto Trait Implementations§
impl Freeze for P2pNetworkEvent
impl RefUnwindSafe for P2pNetworkEvent
impl Send for P2pNetworkEvent
impl Sync for P2pNetworkEvent
impl Unpin for P2pNetworkEvent
impl UnwindSafe for P2pNetworkEvent
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.