pub struct AtomicPoolStats { /* private fields */ }Expand description
Thread-safe pool statistics.
Implementations§
Source§impl AtomicPoolStats
impl AtomicPoolStats
Sourcepub fn record_acquire(&self, wait_time: Duration)
pub fn record_acquire(&self, wait_time: Duration)
Record a connection acquisition.
Sourcepub fn record_release(&self)
pub fn record_release(&self)
Record a connection release.
Sourcepub fn record_timeout(&self)
pub fn record_timeout(&self)
Record a timeout.
Sourcepub fn record_health_failure(&self)
pub fn record_health_failure(&self)
Record a health check failure.
Sourcepub fn mark_created(&self)
pub fn mark_created(&self)
Mark as created.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for AtomicPoolStats
impl !RefUnwindSafe for AtomicPoolStats
impl Send for AtomicPoolStats
impl Sync for AtomicPoolStats
impl Unpin for AtomicPoolStats
impl UnwindSafe for AtomicPoolStats
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