Struct libp2p::core::network::peer::DialingAttemptIter [−][src]
pub struct DialingAttemptIter<'a, THandler, TTrans> where
THandler: IntoConnectionHandler,
TTrans: Transport, { /* fields omitted */ }
Expand description
An iterator over the ongoing dialing attempts to a peer.
Implementations
impl<'a, THandler, TTrans> DialingAttemptIter<'a, THandler, TTrans> where
THandler: IntoConnectionHandler,
TTrans: Transport,
impl<'a, THandler, TTrans> DialingAttemptIter<'a, THandler, TTrans> where
THandler: IntoConnectionHandler,
TTrans: Transport,
Obtains the next dialing connection, if any.
Returns the first connection, if any, consuming the iterator.