pub struct ConnectionMetrics { /* private fields */ }
Expand description
Connection metrics
Implementations§
Source§impl ConnectionMetrics
impl ConnectionMetrics
Sourcepub fn connection_opened(&self)
pub fn connection_opened(&self)
Record that a connection was opened
Sourcepub fn connection_closed(&self)
pub fn connection_closed(&self)
Record that a connection was closed
Sourcepub fn connection_failed(&self)
pub fn connection_failed(&self)
Record a connection failure
Sourcepub fn connection_migrated(&self)
pub fn connection_migrated(&self)
Record a connection path migration
Sourcepub fn summary(&self) -> ConnectionMetricsSummary
pub fn summary(&self) -> ConnectionMetricsSummary
Generate a snapshot summary of current connection metrics
Trait Implementations§
Source§impl Debug for ConnectionMetrics
impl Debug for ConnectionMetrics
Auto Trait Implementations§
impl !Freeze for ConnectionMetrics
impl RefUnwindSafe for ConnectionMetrics
impl Send for ConnectionMetrics
impl Sync for ConnectionMetrics
impl Unpin for ConnectionMetrics
impl UnwindSafe for ConnectionMetrics
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