#[non_exhaustive]pub struct PoolStats {
pub connections: usize,
pub taken: usize,
pub connecting: usize,
pub in_flight: usize,
pub waiting: usize,
pub opened: u64,
pub connect_errors: u64,
pub timeouts: u64,
}Expand description
What a pool is doing, from Pool::stats.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.connections: usizeOpen connections, taken or not.
taken: usizeConnections taken with Pool::get.
connecting: usizeConnections being opened.
in_flight: usizeRequests sent on the shared connections and not answered yet.
waiting: usizeTasks waiting for a connection.
opened: u64Connections opened since the pool was made.
connect_errors: u64Attempts to open a connection that failed.
timeouts: u64Waits that ended with ErrorKind::PoolTimeout.
Trait Implementations§
impl Copy for PoolStats
impl Eq for PoolStats
impl StructuralPartialEq for PoolStats
Auto Trait Implementations§
impl Forget for PoolStats
impl Freeze for PoolStats
impl Move for PoolStats
impl RefUnwindSafe for PoolStats
impl Send for PoolStats
impl Sync for PoolStats
impl Unpin for PoolStats
impl UnsafeUnpin 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