pub(super) fn connection_kind(&self, peer: &PeerId) -> ConnectionKind {
        if let Some(_) = self.connected_peers.get(peer) {
            ConnectionKind::Direct
        } else {
            ConnectionKind::Disconnected
        }
    }
/// Returns whether peer is a directly connected client or not
Returns whether peer is a directly connected client or not
Returns whether peer is a directly connected client or not
pub(super) fn connection_kind(&self, peer: &PeerId) -> ConnectionKind {
        if let Some(_) = self.connected_peers.get(peer) {
            ConnectionKind::Direct
        } else {
            ConnectionKind::Disconnected
        }
    }
pub ( super ) fn connection_kind ( & self , peer : & PeerId ) -> ConnectionKind { if let Some ( _ ) = self . connected_peers . get ( peer ) { ConnectionKind :: Direct } else { ConnectionKind :: Disconnected } }
Returns whether peer is a directly connected client or not
Returns whether peer is a directly connected client or not
&self
peer
&PeerId