pub struct PoolStats {
pub total_capacity: u64,
pub total_allocated: u64,
pub resource_count: usize,
pub active_allocations: usize,
pub average_utilisation: f64,
}Expand description
Summary statistics for the entire pool.
Fields§
§total_capacity: u64Total capacity across all resources.
total_allocated: u64Total allocated across all resources.
resource_count: usizeNumber of resources.
active_allocations: usizeNumber of active allocations.
average_utilisation: f64Average utilisation across resources.
Trait Implementations§
Auto Trait Implementations§
impl Freeze 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