pub struct PoolStats {
pub total_borrowed: u64,
pub total_returned: u64,
pub available_count: usize,
pub peak_usage: usize,
pub empty_count: u64,
pub allocation_time_ns: u64,
}Expand description
Pool performance statistics
Fields§
§total_borrowed: u64Total objects borrowed from pool
total_returned: u64Total objects returned to pool
available_count: usizeCurrent number of available objects
peak_usage: usizePeak pool usage
empty_count: u64Number of times pool was empty (fallback allocations)
allocation_time_ns: u64Total time spent in allocation operations (nanoseconds)
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 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