Struct libp2p::core::network::NetworkInfo [−][src]
pub struct NetworkInfo { /* fields omitted */ }Information about the network obtained by Network::info().
Implementations
impl NetworkInfo[src]
impl NetworkInfo[src]pub fn num_peers(&self) -> usize[src]
The number of connected peers, i.e. peers with whom at least one established connection exists.
pub fn connection_counters(&self) -> &ConnectionCounters[src]
Gets counters for ongoing network connections.
Trait Implementations
impl Clone for NetworkInfo[src]
impl Clone for NetworkInfo[src]