Struct libp2p_core::connection::EstablishedConnectionIter [−][src]
pub struct EstablishedConnectionIter<'a, I, TInEvent> { /* fields omitted */ }
Expand description
An iterator over established connections in a pool.
Implementations
impl<'a, I, TInEvent> EstablishedConnectionIter<'a, I, TInEvent> where
I: Iterator<Item = ConnectionId>,
impl<'a, I, TInEvent> EstablishedConnectionIter<'a, I, TInEvent> where
I: Iterator<Item = ConnectionId>,
Obtains the next connection, if any.
Turns the iterator into an iterator over just the connection IDs.
Returns the first connection, if any, consuming the iterator.