pub struct PoolStats {
pub capacity: usize,
pub allocated: usize,
pub available: usize,
pub free_blocks: usize,
pub allocated_blocks: usize,
pub largest_free_block: usize,
pub smallest_free_block: usize,
pub average_free_block: usize,
}Expand description
Memory pool statistics
Fields§
§capacity: usizeTotal pool capacity in bytes
allocated: usizeCurrently allocated bytes from pool
available: usizeAvailable bytes in pool
free_blocks: usizeNumber of free blocks
allocated_blocks: usizeNumber of allocated blocks
largest_free_block: usizeLargest free block size
smallest_free_block: usizeSmallest free block size
average_free_block: usizeAverage free block size
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more