Enum network::peer::PeerNotification
source · pub enum PeerNotification {
RecvRpc(InboundRpcRequest),
RecvMessage(Message),
}
Expand description
Notifications that Peer
sends to the PeerManager
.
Variants§
RecvRpc(InboundRpcRequest)
A new RPC request has been received from peer.
RecvMessage(Message)
A new message has been received from peer.
Trait Implementations§
source§impl Debug for PeerNotification
impl Debug for PeerNotification
source§impl PartialEq<PeerNotification> for PeerNotification
impl PartialEq<PeerNotification> for PeerNotification
source§fn eq(&self, other: &PeerNotification) -> bool
fn eq(&self, other: &PeerNotification) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.