Enum libp2p_identify::IdentifyEvent [−][src]
pub enum IdentifyEvent { Received { peer_id: PeerId, info: IdentifyInfo, }, Sent { peer_id: PeerId, }, Pushed { peer_id: PeerId, }, Error { peer_id: PeerId, error: ProtocolsHandlerUpgrErr<Error>, }, }
Expand description
Event emitted by the Identify
behaviour.
Variants
Identification information has been received from a peer.
Show fields
Fields of Received
peer_id: PeerId
The peer that has been identified.
info: IdentifyInfo
The information provided by the peer.
Identification information of the local node has been sent to a peer in response to an identification request.
Show fields
Fields of Sent
peer_id: PeerId
The peer that the information has been sent to.
Identification information of the local node has been actively pushed to a peer.
Show fields
Fields of Pushed
peer_id: PeerId
The peer that the information has been sent to.
Error while attempting to identify the remote.
Show fields
Fields of Error
peer_id: PeerId
The peer with whom the error originated.
error: ProtocolsHandlerUpgrErr<Error>
The error that occurred.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for IdentifyEvent
impl Send for IdentifyEvent
impl Sync for IdentifyEvent
impl Unpin for IdentifyEvent
impl !UnwindSafe for IdentifyEvent