pub struct PoolStatistics {
pub hits: AtomicU64,
pub misses: AtomicU64,
pub returns: AtomicU64,
pub discards: AtomicU64,
}Expand description
Statistics for monitoring buffer pool performance
Fields§
§hits: AtomicU64Number of successful buffer retrievals from pool
misses: AtomicU64Number of new buffer allocations due to pool miss
returns: AtomicU64Number of buffers returned to pool
discards: AtomicU64Number of buffers discarded due to pool being full
Implementations§
Trait Implementations§
Source§impl Debug for PoolStatistics
impl Debug for PoolStatistics
Source§impl Default for PoolStatistics
impl Default for PoolStatistics
Source§fn default() -> PoolStatistics
fn default() -> PoolStatistics
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for PoolStatistics
impl RefUnwindSafe for PoolStatistics
impl Send for PoolStatistics
impl Sync for PoolStatistics
impl Unpin for PoolStatistics
impl UnwindSafe for PoolStatistics
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> 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