PoolStats

Trait PoolStats 

Source
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§

Source

fn statistics(&self) -> PoolStatistics

Get current statistics for this pool.

Source

fn reset_statistics(&self)

Reset statistics counters.

Implementors§