pub struct Status {
pub max_size: usize,
pub size: usize,
pub available: usize,
pub waiting: usize,
}
Expand description
The current pool status.
The status returned by the pool is not guaranteed to be consistent!
While this features provides eventual consistency the numbers will be off when accessing the status of a pool under heavy load. These numbers are meant for an overall insight.
Fields§
§max_size: usize
The maximum size of the pool.
size: usize
The current size of the pool.
available: usize
The number of available objects in the pool.
waiting: usize
The number of futures waiting for an object.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Status
impl RefUnwindSafe for Status
impl Send for Status
impl Sync for Status
impl Unpin for Status
impl UnwindSafe for Status
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