pub struct ShardedPoolStats {
pub shard_count: usize,
pub per_shard: HashMap<String, 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
Aggregate statistics for a sharded pool.
Fields§
§shard_count: usizeNumber of shards.
per_shard: HashMap<String, PoolStats>Per-shard statistics.
total_connections: usizeTotal connections across all shards.
idle_connections: usizeIdle connections across all shards.
active_connections: usizeActive connections across all shards.
pending_requests: usizePending requests across all shards.
connections_created: u64Total connections created across all shards.
connections_closed: u64Total connections closed across all shards.
acquires: u64Total acquires across all shards.
timeouts: u64Total timeouts across all shards.
Trait Implementations§
Source§impl Clone for ShardedPoolStats
impl Clone for ShardedPoolStats
Source§fn clone(&self) -> ShardedPoolStats
fn clone(&self) -> ShardedPoolStats
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 ShardedPoolStats
impl Debug for ShardedPoolStats
Source§impl Default for ShardedPoolStats
impl Default for ShardedPoolStats
Source§fn default() -> ShardedPoolStats
fn default() -> ShardedPoolStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ShardedPoolStats
impl RefUnwindSafe for ShardedPoolStats
impl Send for ShardedPoolStats
impl Sync for ShardedPoolStats
impl Unpin for ShardedPoolStats
impl UnwindSafe for ShardedPoolStats
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).