Enum libp2p_identify::IdentifyEvent [−][src]
pub enum IdentifyEvent {
Received {
peer_id: PeerId,
info: IdentifyInfo,
observed_addr: Multiaddr,
},
Sent {
peer_id: PeerId,
},
Error {
peer_id: PeerId,
error: ProtocolsHandlerUpgrErr<ReadOneError>,
},
}Event emitted by the Identify behaviour.
Variants
Identifying information has been received from a peer.
Show fields
Fields of Received
peer_id: PeerIdThe peer that has been identified.
info: IdentifyInfoThe information provided by the peer.
observed_addr: MultiaddrThe address observed by the peer for the local node.
Identifying information of the local node has been sent to a peer.
Show fields
Fields of Sent
peer_id: PeerIdThe peer that the information has been sent to.
Error while attempting to identify the remote.
Show fields
Fields of Error
peer_id: PeerIdThe peer with whom the error originated.
error: ProtocolsHandlerUpgrErr<ReadOneError>The error that occurred.