#[non_exhaustive]pub struct PoolStatus {
pub available: usize,
pub size: usize,
pub max_size: usize,
pub waiting: usize,
}Expand description
Pool status information.
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.available: usizeNumber of available (idle) connections.
size: usizeCurrent total size of the pool.
max_size: usizeMaximum size of the pool.
waiting: usizeNumber of tasks waiting for a connection.
Trait Implementations§
Source§impl Clone for PoolStatus
impl Clone for PoolStatus
Auto Trait Implementations§
impl Forget for PoolStatus
impl Freeze for PoolStatus
impl Move for PoolStatus
impl RefUnwindSafe for PoolStatus
impl Send for PoolStatus
impl Sync for PoolStatus
impl Unpin for PoolStatus
impl UnsafeUnpin for PoolStatus
impl UnwindSafe for PoolStatus
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