logo
pub struct DialingAttempt<'a, TInEvent> { /* private fields */ }
Expand description

A DialingAttempt is an ongoing outgoing connection attempt to a known / expected remote peer ID and a list of alternative addresses to connect to, if the current connection attempt fails.

Implementations

Returns the ID of the current connection attempt.

Returns the (expected) peer ID of the dialing attempt.

Returns the remote address of the current connection attempt.

Aborts the dialing attempt.

Aborting a dialing attempt involves aborting the current connection attempt and dropping any remaining addresses given to Peer::dial() that have not yet been tried.

Adds an address to the end of the remaining addresses for this dialing attempt. Duplicates are ignored.

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.