pub struct PoolStats {
pub connections_acquired: u64,
pub connections_released: u64,
pub active_connections: usize,
pub idle_connections: usize,
pub total_wait_time_ms: u64,
pub max_wait_time_ms: u64,
pub timeouts: u64,
pub health_check_failures: u64,
pub created_at: Option<Instant>,
pub last_activity: Option<Instant>,
}Expand description
Statistics for a tenant pool.
Fields§
§connections_acquired: u64Total connections acquired.
connections_released: u64Total connections released.
active_connections: usizeCurrently active connections.
idle_connections: usizeIdle connections available.
total_wait_time_ms: u64Total wait time for connections (ms).
max_wait_time_ms: u64Maximum wait time observed (ms).
timeouts: u64Connection timeouts.
health_check_failures: u64Failed health checks.
created_at: Option<Instant>Pool creation time.
last_activity: Option<Instant>Last activity time.
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