Struct libp2p_swarm::ConnectionCounters
source · pub struct ConnectionCounters { /* private fields */ }
Expand description
Network connection information.
Implementations§
source§impl ConnectionCounters
impl ConnectionCounters
sourcepub fn limits(&self) -> &ConnectionLimits
👎Deprecated: Use the libp2p::connection_limits
instead.
pub fn limits(&self) -> &ConnectionLimits
libp2p::connection_limits
instead.The effective connection limits.
sourcepub fn num_connections(&self) -> u32
pub fn num_connections(&self) -> u32
The total number of connections, both pending and established.
sourcepub fn num_pending(&self) -> u32
pub fn num_pending(&self) -> u32
The total number of pending connections, both incoming and outgoing.
sourcepub fn num_pending_incoming(&self) -> u32
pub fn num_pending_incoming(&self) -> u32
The number of incoming connections being established.
sourcepub fn num_pending_outgoing(&self) -> u32
pub fn num_pending_outgoing(&self) -> u32
The number of outgoing connections being established.
sourcepub fn num_established_incoming(&self) -> u32
pub fn num_established_incoming(&self) -> u32
The number of established incoming connections.
sourcepub fn num_established_outgoing(&self) -> u32
pub fn num_established_outgoing(&self) -> u32
The number of established outgoing connections.
sourcepub fn num_established(&self) -> u32
pub fn num_established(&self) -> u32
The total number of established connections.
Trait Implementations§
source§impl Clone for ConnectionCounters
impl Clone for ConnectionCounters
source§fn clone(&self) -> ConnectionCounters
fn clone(&self) -> ConnectionCounters
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl RefUnwindSafe for ConnectionCounters
impl Send for ConnectionCounters
impl Sync for ConnectionCounters
impl Unpin for ConnectionCounters
impl UnwindSafe for ConnectionCounters
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more