pub struct ConnectionPoolStats {
pub connections_created: u64,
pub connections_reused: u64,
pub connections_expired: u64,
pub active_connections: usize,
pub hit_rate: f64,
pub avg_connection_age: Duration,
}Expand description
Statistics for connection pool
Fields§
§connections_created: u64Total connections created
connections_reused: u64Total connections reused
connections_expired: u64Total connections expired
active_connections: usizeCurrent active connections
hit_rate: f64Pool hit rate (reuse / total requests)
avg_connection_age: DurationAverage connection age
Trait Implementations§
Source§impl Clone for ConnectionPoolStats
impl Clone for ConnectionPoolStats
Source§fn clone(&self) -> ConnectionPoolStats
fn clone(&self) -> ConnectionPoolStats
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ConnectionPoolStats
impl Debug for ConnectionPoolStats
Source§impl Default for ConnectionPoolStats
impl Default for ConnectionPoolStats
Source§fn default() -> ConnectionPoolStats
fn default() -> ConnectionPoolStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ConnectionPoolStats
impl RefUnwindSafe for ConnectionPoolStats
impl Send for ConnectionPoolStats
impl Sync for ConnectionPoolStats
impl Unpin for ConnectionPoolStats
impl UnwindSafe for ConnectionPoolStats
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