pub struct PoolState {
pub max_size: Option<usize>,
pub size: Option<usize>,
pub idle: Option<usize>,
pub in_use: Option<usize>,
pub min_idle: Option<usize>,
pub max_idle: Option<usize>,
}Expand description
State of a pool object.
If pool type doesn’t support some metrics, these metrics must be left as None.
Fields§
§max_size: Option<usize>Maximum total (idle + in_use) number of resources in the pool.
size: Option<usize>Current total (idle + in_use) number of resources in the pool.
idle: Option<usize>Current number of idle (not acquired) resources.
in_use: Option<usize>Current number of in-use (acquired) resources.
min_idle: Option<usize>Minimum number of idle resources to keep in the pool.
max_idle: Option<usize>Maximum number of idle resources to keep in the pool.
Trait Implementations§
impl Eq for PoolState
impl StructuralPartialEq 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