pub struct PoolStats {
pub total_connections: usize,
pub idle_connections: usize,
pub active_connections: usize,
pub pending_requests: usize,
pub connections_created: u64,
pub connections_closed: u64,
pub acquires: u64,
pub timeouts: u64,
}Expand description
Pool statistics.
Fields§
§total_connections: usizeTotal number of connections (active + idle)
idle_connections: usizeNumber of idle connections
active_connections: usizeNumber of active connections (currently in use)
pending_requests: usizeNumber of pending acquire requests
connections_created: u64Total number of connections created
connections_closed: u64Total number of connections closed
acquires: u64Total number of successful acquires
timeouts: u64Total number of acquire timeouts
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 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).