pub struct PoolModeStatsSnapshot {
pub mode: String,
pub total_connections: usize,
pub active_leases: usize,
pub idle_connections: usize,
pub node_count: usize,
pub acquires: u64,
pub releases: u64,
pub acquire_failures: u64,
pub acquire_timeouts: u64,
pub transactions_completed: u64,
pub statements_executed: u64,
pub avg_lease_duration_ms: u64,
}Expand description
Pool mode statistics snapshot (when pool-modes feature is enabled)
Fields§
§mode: StringCurrent pooling mode
total_connections: usizeTotal connections across all pools
active_leases: usizeActive (leased) connections
idle_connections: usizeIdle connections
node_count: usizeNumber of nodes in the pool
acquires: u64Total connection acquires
releases: u64Total connection releases
acquire_failures: u64Failed acquire attempts
acquire_timeouts: u64Acquire timeouts
transactions_completed: u64Completed transactions (Transaction mode)
statements_executed: u64Total statements executed
avg_lease_duration_ms: u64Average lease duration in milliseconds
Trait Implementations§
Source§impl Clone for PoolModeStatsSnapshot
impl Clone for PoolModeStatsSnapshot
Source§fn clone(&self) -> PoolModeStatsSnapshot
fn clone(&self) -> PoolModeStatsSnapshot
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 moreAuto Trait Implementations§
impl Freeze for PoolModeStatsSnapshot
impl RefUnwindSafe for PoolModeStatsSnapshot
impl Send for PoolModeStatsSnapshot
impl Sync for PoolModeStatsSnapshot
impl Unpin for PoolModeStatsSnapshot
impl UnsafeUnpin for PoolModeStatsSnapshot
impl UnwindSafe for PoolModeStatsSnapshot
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: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more