pub struct DisconnectedPeer<'a, TTrans, TInEvent, TOutEvent, THandler> where
    TTrans: Transport,
    THandler: IntoConnectionHandler
{ /* private fields */ }
Expand description

The representation of a peer to whom the Network has currently neither an established connection, nor an ongoing dialing attempt initiated by the local peer.

Implementations

Returns the DisconnectedPeer into a Peer.

Moves the peer into a connected state by supplying an existing established connection.

No event is generated for this action.

Panics

Panics if connected.peer_id does not identify the current peer.

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.