Struct libp2p_core::network::peer::DialingAttemptIter
source · [−]pub struct DialingAttemptIter<'a, THandler: IntoConnectionHandler, TTrans: Transport> { /* private fields */ }Expand description
An iterator over the ongoing dialing attempts to a peer.
Implementations
sourceimpl<'a, THandler: IntoConnectionHandler, TTrans: Transport> DialingAttemptIter<'a, THandler, TTrans>
impl<'a, THandler: IntoConnectionHandler, TTrans: Transport> DialingAttemptIter<'a, THandler, TTrans>
sourcepub fn next(&mut self) -> Option<DialingAttempt<'_, THandler>>
pub fn next(&mut self) -> Option<DialingAttempt<'_, THandler>>
Obtains the next dialing connection, if any.
sourcepub fn into_first<'b>(self) -> Option<DialingAttempt<'b, THandler>> where
'a: 'b,
pub fn into_first<'b>(self) -> Option<DialingAttempt<'b, THandler>> where
'a: 'b,
Returns the first connection, if any, consuming the iterator.
Auto Trait Implementations
impl<'a, THandler, TTrans> !RefUnwindSafe for DialingAttemptIter<'a, THandler, TTrans>
impl<'a, THandler, TTrans> Send for DialingAttemptIter<'a, THandler, TTrans> where
THandler: Send,
<TTrans as Transport>::Error: Send,
<THandler as IntoConnectionHandler>::Handler: Send,
<TTrans as Transport>::Output: Send,
impl<'a, THandler, TTrans> !Sync for DialingAttemptIter<'a, THandler, TTrans>
impl<'a, THandler, TTrans> Unpin for DialingAttemptIter<'a, THandler, TTrans>
impl<'a, THandler, TTrans> !UnwindSafe for DialingAttemptIter<'a, THandler, TTrans>
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