pub struct PoolStats {
pub allocated: u64,
pub reused: u64,
pub returned: u64,
pub freed: u64,
pub cached: usize,
pub cached_bytes: usize,
}Expand description
Counters of a BufPool.
Fields§
§allocated: u64Buffers handed out that were newly allocated.
reused: u64Buffers handed out that were reused from the pool.
returned: u64Buffers taken back and kept.
freed: u64Buffers taken back and freed (pool full or odd size).
cached: usizeBuffers kept in the pool now.
cached_bytes: usizeBytes kept in the pool now.
Trait Implementations§
impl Copy for PoolStats
impl Eq for PoolStats
impl StructuralPartialEq for PoolStats
Auto Trait Implementations§
impl Forget for PoolStats
impl Freeze for PoolStats
impl Move 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