pub struct ConnectionMetrics { /* private fields */ }Expand description
Connection metrics
Implementations§
Source§impl ConnectionMetrics
impl ConnectionMetrics
pub fn new() -> Self
pub fn connection_opened(&self)
pub fn connection_closed(&self)
pub fn connection_failed(&self)
pub fn connection_migrated(&self)
pub fn summary(&self) -> ConnectionMetricsSummary
Trait Implementations§
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