pub struct PoolMetrics {
pub active: usize,
pub idle: usize,
pub total: usize,
pub max: usize,
}Expand description
Snapshot of pool statistics.
Cheap to produce — reads from pool state under a single lock.
Fields§
§active: usizeNumber of connections currently checked out by users.
idle: usizeNumber of idle connections available for checkout.
total: usizeTotal connections (active + idle).
max: usizeMaximum allowed connections.
Trait Implementations§
Source§impl Clone for PoolMetrics
impl Clone for PoolMetrics
Source§fn clone(&self) -> PoolMetrics
fn clone(&self) -> PoolMetrics
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 PoolMetrics
impl Debug for PoolMetrics
impl Copy for PoolMetrics
Auto Trait Implementations§
impl Freeze for PoolMetrics
impl RefUnwindSafe for PoolMetrics
impl Send for PoolMetrics
impl Sync for PoolMetrics
impl Unpin for PoolMetrics
impl UnsafeUnpin for PoolMetrics
impl UnwindSafe for PoolMetrics
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