#[non_exhaustive]pub struct PoolStats {
pub allocated: u64,
pub free: u64,
pub budget_left: u64,
pub budget_refusals: u64,
pub freed: u64,
}Expand description
Counts of one pool.
let pool = net_io::BufferPool::standalone(1 << 20);
assert_eq!(pool.stats().allocated, 0);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.allocated: u64Buffers this pool allocated.
free: u64Buffers in its free lists.
budget_left: u64Bytes left in the shared budget.
budget_refusals: u64Takes refused because the budget was spent.
freed: u64Buffers this pool freed and gave back to the shared budget: released above what the pool keeps, or freed to make room for a buffer of another class.
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