pub struct BytesPoolMetrics {
pub total_acquires: AtomicU64,
pub pool_hits: AtomicU64,
pub pool_misses: AtomicU64,
pub total_bytes_allocated: AtomicU64,
pub current_allocated_bytes: AtomicU64,
pub available_buffers: AtomicU64,
}Expand description
Pool metrics for monitoring and optimization.
Tracks acquisition patterns and memory usage.
Fields§
§total_acquires: AtomicU64Total buffer acquisitions
pool_hits: AtomicU64Pool hits (buffer reused)
pool_misses: AtomicU64Pool misses (new allocation)
total_bytes_allocated: AtomicU64Total bytes allocated
current_allocated_bytes: AtomicU64Current allocated bytes
available_buffers: AtomicU64Current available buffers in pool
Trait Implementations§
Source§impl Debug for BytesPoolMetrics
impl Debug for BytesPoolMetrics
Auto Trait Implementations§
impl !Freeze for BytesPoolMetrics
impl RefUnwindSafe for BytesPoolMetrics
impl Send for BytesPoolMetrics
impl Sync for BytesPoolMetrics
impl Unpin for BytesPoolMetrics
impl UnsafeUnpin for BytesPoolMetrics
impl UnwindSafe for BytesPoolMetrics
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