pub struct PoolStats {
pub total_connections: usize,
pub idle_connections: usize,
pub in_use_connections: usize,
pub connecting: usize,
pub hosts_count: usize,
pub connections_created: u64,
pub connections_closed: u64,
pub connections_timed_out: u64,
}Expand description
Statistics for a connection pool.
Fields§
§total_connections: usizeTotal number of connections currently in the pool.
idle_connections: usizeNumber of idle connections.
in_use_connections: usizeNumber of connections in use.
connecting: usizeNumber of connections being established.
hosts_count: usizeNumber of hosts with connections.
connections_created: u64Total connections created over the pool’s lifetime.
connections_closed: u64Total connections closed over the pool’s lifetime.
connections_timed_out: u64Total connections that timed out.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PoolStats
impl RefUnwindSafe for PoolStats
impl Send for PoolStats
impl Sync for PoolStats
impl Unpin for PoolStats
impl UnsafeUnpin for PoolStats
impl UnwindSafe for PoolStats
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).