Struct libp2p::core::network::peer::DialingAttemptIter [−][src]
pub struct DialingAttemptIter<'a, TInEvent, TOutEvent, THandler, TTransErr, THandlerErr> { /* fields omitted */ }
An iterator over the ongoing dialing attempts to a peer.
Implementations
impl<'a, TInEvent, TOutEvent, THandler, TTransErr, THandlerErr> DialingAttemptIter<'a, TInEvent, TOutEvent, THandler, TTransErr, THandlerErr>
[src]
impl<'a, TInEvent, TOutEvent, THandler, TTransErr, THandlerErr> DialingAttemptIter<'a, TInEvent, TOutEvent, THandler, TTransErr, THandlerErr>
[src]pub fn next(&mut self) -> Option<DialingAttempt<'_, TInEvent>>
[src]
Obtains the next dialing connection, if any.
pub fn into_first<'b>(self) -> Option<DialingAttempt<'b, TInEvent>> where
'a: 'b,
[src]
'a: 'b,
Returns the first connection, if any, consuming the iterator.
Auto Trait Implementations
impl<'a, TInEvent, TOutEvent, THandler, TTransErr, THandlerErr> !RefUnwindSafe for DialingAttemptIter<'a, TInEvent, TOutEvent, THandler, TTransErr, THandlerErr>
impl<'a, TInEvent, TOutEvent, THandler, TTransErr, THandlerErr> Send for DialingAttemptIter<'a, TInEvent, TOutEvent, THandler, TTransErr, THandlerErr> where
THandler: Send,
THandlerErr: Send,
TInEvent: Send,
TOutEvent: Send,
TTransErr: Send,
THandler: Send,
THandlerErr: Send,
TInEvent: Send,
TOutEvent: Send,
TTransErr: Send,