Struct libp2p_core::network::peer::DialingAttemptIter
source · [−]pub struct DialingAttemptIter<'a, TInEvent, TOutEvent, THandler, TTransErr, THandlerErr> { /* private fields */ }
Expand description
An iterator over the ongoing dialing attempts to a peer.
Implementations
sourceimpl<'a, TInEvent, TOutEvent, THandler, TTransErr, THandlerErr> DialingAttemptIter<'a, TInEvent, TOutEvent, THandler, TTransErr, THandlerErr>
impl<'a, TInEvent, TOutEvent, THandler, TTransErr, THandlerErr> DialingAttemptIter<'a, TInEvent, TOutEvent, THandler, TTransErr, THandlerErr>
sourcepub fn next(&mut self) -> Option<DialingAttempt<'_, TInEvent>>
pub fn next(&mut self) -> Option<DialingAttempt<'_, TInEvent>>
Obtains the next dialing connection, if any.
sourcepub fn into_first<'b>(self) -> Option<DialingAttempt<'b, TInEvent>> where
'a: 'b,
pub fn into_first<'b>(self) -> Option<DialingAttempt<'b, TInEvent>> where
'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,
impl<'a, TInEvent, TOutEvent, THandler, TTransErr, THandlerErr> !Sync for DialingAttemptIter<'a, TInEvent, TOutEvent, THandler, TTransErr, THandlerErr>
impl<'a, TInEvent, TOutEvent, THandler, TTransErr, THandlerErr> Unpin for DialingAttemptIter<'a, TInEvent, TOutEvent, THandler, TTransErr, THandlerErr>
impl<'a, TInEvent, TOutEvent, THandler, TTransErr, THandlerErr> !UnwindSafe for DialingAttemptIter<'a, TInEvent, TOutEvent, THandler, TTransErr, THandlerErr>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more