pub enum IdentifyEvent {
    Identified {
        peer_id: PeerId,
        info: IdentifyInfo,
        observed_addr: Multiaddr,
    },
    Error {
        peer_id: PeerId,
        error: ProtocolsHandlerUpgrErr<Error>,
    },
}
Expand description

Event generated by the Identify.

Variants

Identified

Fields

peer_id: PeerId

Peer that has been successfully identified.

info: IdentifyInfo

Information of the remote.

observed_addr: Multiaddr

Address the remote observes us as.

We obtained identification information from the remote

Error

Fields

peer_id: PeerId

Peer that we fail to identify.

error: ProtocolsHandlerUpgrErr<Error>

The error that happened.

Error while attempting to identify the remote.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.