pub struct BufferPoolStats {
pub allocations: usize,
pub deallocations: usize,
pub pool_hits: usize,
pub pool_misses: usize,
pub hit_rate: f64,
}Expand description
Buffer pool statistics
Fields§
§allocations: usizeTotal number of buffer allocations from the pool
deallocations: usizeTotal number of buffer deallocations back to the pool
pool_hits: usizeNumber of times a buffer was successfully obtained from the pool
pool_misses: usizeNumber of times a new buffer had to be allocated due to pool exhaustion
hit_rate: f64Cache hit rate (pool_hits / (pool_hits + pool_misses))
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§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for BufferPoolStats
impl RefUnwindSafe for BufferPoolStats
impl Send for BufferPoolStats
impl Sync for BufferPoolStats
impl Unpin 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