Struct libp2p::core::connection::EstablishedConnectionIter [−][src]
pub struct EstablishedConnectionIter<'a, I, TInEvent, TOutEvent, THandler, TTransErr, THandlerErr> { /* fields omitted */ }
An iterator over established connections in a pool.
Implementations
impl<'a, I, TInEvent, TOutEvent, THandler, TTransErr, THandlerErr> EstablishedConnectionIter<'a, I, TInEvent, TOutEvent, THandler, TTransErr, THandlerErr> where
I: Iterator<Item = ConnectionId>,
[src]
impl<'a, I, TInEvent, TOutEvent, THandler, TTransErr, THandlerErr> EstablishedConnectionIter<'a, I, TInEvent, TOutEvent, THandler, TTransErr, THandlerErr> where
I: Iterator<Item = ConnectionId>,
[src]pub fn next(&mut self) -> Option<EstablishedConnection<'_, TInEvent>>
[src]
Obtains the next connection, if any.
pub fn into_ids(self) -> impl Iterator<Item = ConnectionId>
[src]
Turns the iterator into an iterator over just the connection IDs.
pub fn into_first<'b>(self) -> Option<EstablishedConnection<'b, TInEvent>> where
'a: 'b,
[src]
'a: 'b,
Returns the first connection, if any, consuming the iterator.
Auto Trait Implementations
impl<'a, I, TInEvent, TOutEvent, THandler, TTransErr, THandlerErr> !RefUnwindSafe for EstablishedConnectionIter<'a, I, TInEvent, TOutEvent, THandler, TTransErr, THandlerErr>
impl<'a, I, TInEvent, TOutEvent, THandler, TTransErr, THandlerErr> Send for EstablishedConnectionIter<'a, I, TInEvent, TOutEvent, THandler, TTransErr, THandlerErr> where
I: Send,
THandler: Send,
THandlerErr: Send,
TInEvent: Send,
TOutEvent: Send,
TTransErr: Send,
I: Send,
THandler: Send,
THandlerErr: Send,
TInEvent: Send,
TOutEvent: Send,
TTransErr: Send,
impl<'a, I, TInEvent, TOutEvent, THandler, TTransErr, THandlerErr> !Sync for EstablishedConnectionIter<'a, I, TInEvent, TOutEvent, THandler, TTransErr, THandlerErr>
impl<'a, I, TInEvent, TOutEvent, THandler, TTransErr, THandlerErr> Unpin for EstablishedConnectionIter<'a, I, TInEvent, TOutEvent, THandler, TTransErr, THandlerErr> where
I: Unpin,
I: Unpin,