pub struct PoolStats {
pub active: usize,
pub idle: usize,
pub pending: usize,
pub max_size: usize,
pub total_created: usize,
}Expand description
Pool statistics for monitoring.
Fields§
§active: usizeNumber of connections currently in use
idle: usizeNumber of idle connections available
pending: usizeNumber of requests waiting for a connection
max_size: usizeMaximum connections configured
total_created: usizeTotal connections created since pool start
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