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

The representation of a peer in a Network to whom a dialing attempt is ongoing. There may already exist other established connections to this peer.

Implementations

Returns the DialingPeer into a Peer.

Disconnects from this peer, closing all established connections and aborting all dialing attempts.

Checks whether there is an established connection to the peer.

Returns true iff DialingPeer::into_connected returns Some.

Converts the peer into a ConnectedPeer, if an established connection exists.

Obtains a dialing attempt to the peer by connection ID of the current connection attempt.

Gets an iterator over all dialing (i.e. pending outgoing) connections to the peer.

Obtains some dialing connection to the peer.

At least one dialing connection is guaranteed to exist on a DialingPeer.

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.