pub struct BufferPoolStats {
pub hits: u64,
pub misses: u64,
pub allocations: u64,
pub returns: u64,
pub drops: u64,
pub free_buffers: [usize; 5],
pub hit_rate: f64,
}Expand description
Buffer pool statistics
Fields§
§hits: u64Number of pool hits
misses: u64Number of pool misses
allocations: u64Total allocations
returns: u64Buffers returned to pool
drops: u64Buffers dropped (pool full)
free_buffers: [usize; 5]Free buffers per size class [1K, 4K, 16K, 64K, 256K]
hit_rate: f64Pool hit rate (0.0 - 1.0)
Trait Implementations§
Source§impl Clone for BufferPoolStats
impl Clone for BufferPoolStats
Source§fn clone(&self) -> BufferPoolStats
fn clone(&self) -> BufferPoolStats
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BufferPoolStats
impl Debug for BufferPoolStats
Source§impl Default for BufferPoolStats
impl Default for BufferPoolStats
Source§fn default() -> BufferPoolStats
fn default() -> BufferPoolStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BufferPoolStats
impl RefUnwindSafe for BufferPoolStats
impl Send for BufferPoolStats
impl Sync for BufferPoolStats
impl Unpin for BufferPoolStats
impl UnsafeUnpin for BufferPoolStats
impl UnwindSafe for BufferPoolStats
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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