pub struct PoolState {
pub in_flight: usize,
pub connections: usize,
pub reservations: usize,
pub idle: usize,
pub pools: usize,
}
Expand description
The current state of the pool
Fields§
§in_flight: usize
The number of in flight connections
connections: usize
The total number of connections
If there are multiple pools it is the summ of all their connections.
reservations: usize
The number of reservations waiting for a connections
idle: usize
the number of idle connections ready to be checked out
pools: usize
The number of sub pools
Trait Implementations§
impl Copy for PoolState
Auto Trait Implementations§
impl Freeze for PoolState
impl RefUnwindSafe for PoolState
impl Send for PoolState
impl Sync for PoolState
impl Unpin for PoolState
impl UnwindSafe for PoolState
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