pub trait PoolStats {
// Required methods
fn statistics(&self) -> PoolStatistics;
fn reset_statistics(&self);
}Available on crate feature
stats only.Expand description
Trait for pools that support statistics collection.
Required Methods§
Sourcefn statistics(&self) -> PoolStatistics
fn statistics(&self) -> PoolStatistics
Get current statistics for this pool.
Sourcefn reset_statistics(&self)
fn reset_statistics(&self)
Reset statistics counters.