pub fn state_peers(
        &'_ self,
        state: PeerAddrState,
    ) -> impl Iterator<Item = MetaAddr> + DoubleEndedIterator + '_ {
        let _guard = self.span.enter();

        self.by_addr
            .descending_values()
            .filter(move |peer| peer.last_connection_state == state)
            .cloned()
    }
/// Return an iterator over all the peers in `state`,
/// in reconnection attempt order, including recently connected peers.
Return an iterator over all the peers in `state`,
in reconnection attempt order, including recently connected peers.
Return an iterator over all the peers in ` state ` in reconnection attempt order including recently connected peers .
pub fn state_peers(
        &'_ self,
        state: PeerAddrState,
    ) -> impl Iterator<Item = MetaAddr> + DoubleEndedIterator + '_ {
        let _guard = self.span.enter();
        self.by_addr
            .descending_values()
            .filter(move |peer| peer.last_connection_state == state)
            .cloned()
    }
pub fn state_peers ( & ' _ self , state : PeerAddrState , ) -> impl Iterator < Item = MetaAddr > + DoubleEndedIterator + ' _ { let _guard = self . span . enter ( ) ; self . by_addr . descending_values ( ) . filter ( move | peer | peer . last_connection_state == state ) . cloned ( ) }
Return an iterator over all the peers in `state`,
in reconnection attempt order, including recently connected peers.
Return an iterator over all the peers in ` state ` in reconnection attempt order including recently connected peers .
&'_ self
state
PeerAddrState