Enum network::peer::PeerNotification [−][src]
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.
Tuple Fields of RecvRpc
RecvMessage(Message)A new message has been received from peer.
Tuple Fields of RecvMessage
0: MessageTrait Implementations
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl !RefUnwindSafe for PeerNotification
impl Send for PeerNotification
impl Sync for PeerNotification
impl Unpin for PeerNotification
impl !UnwindSafe for PeerNotification
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
type Output = T
type Output = T
Should always be Self