Struct libp2p_core::connection::EstablishedConnectionIter
source · [−]pub struct EstablishedConnectionIter<'a, I, TInEvent> { /* private fields */ }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.