Struct libp2p_swarm::ConnectionCounters
source · [−]pub struct ConnectionCounters { /* private fields */ }Expand description
Network connection information.
Implementations
sourceimpl ConnectionCounters
impl ConnectionCounters
sourcepub fn limits(&self) -> &ConnectionLimits
pub fn limits(&self) -> &ConnectionLimits
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
sourceimpl Clone for ConnectionCounters
impl Clone for ConnectionCounters
sourcefn clone(&self) -> ConnectionCounters
fn clone(&self) -> ConnectionCounters
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more