pub enum Event {
    Received {
        peer_id: PeerId,
        info: Info,
    },
    Sent {
        peer_id: PeerId,
    },
    Pushed {
        peer_id: PeerId,
    },
    Error {
        peer_id: PeerId,
        error: ConnectionHandlerUpgrErr<UpgradeError>,
    },
}
Expand description

Event emitted by the Identify behaviour.

Variants§

§

Received

Fields

§peer_id: PeerId

The peer that has been identified.

§info: Info

The information provided by the peer.

Identification information has been received from a peer.

§

Sent

Fields

§peer_id: PeerId

The peer that the information has been sent to.

Identification information of the local node has been sent to a peer in response to an identification request.

§

Pushed

Fields

§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.

§

Error

Fields

§peer_id: PeerId

The peer with whom the error originated.

§error: ConnectionHandlerUpgrErr<UpgradeError>

The error that occurred.

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.