pub struct BlockCacheStats {
pub hits: u64,
pub misses: u64,
pub cached_blocks: usize,
pub dirty_blocks: usize,
pub capacity: usize,
}Fields§
§hits: u64§misses: u64§cached_blocks: usize§dirty_blocks: usize§capacity: usizeImplementations§
Source§impl BlockCacheStats
impl BlockCacheStats
pub fn total_reads(self) -> u64
pub fn hit_rate_percent(self) -> u64
Trait Implementations§
Source§impl Clone for BlockCacheStats
impl Clone for BlockCacheStats
Source§fn clone(&self) -> BlockCacheStats
fn clone(&self) -> BlockCacheStats
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BlockCacheStats
Source§impl Debug for BlockCacheStats
impl Debug for BlockCacheStats
impl Eq for BlockCacheStats
Source§impl PartialEq for BlockCacheStats
impl PartialEq for BlockCacheStats
impl StructuralPartialEq for BlockCacheStats
Auto Trait Implementations§
impl Freeze for BlockCacheStats
impl RefUnwindSafe for BlockCacheStats
impl Send for BlockCacheStats
impl Sync for BlockCacheStats
impl Unpin for BlockCacheStats
impl UnsafeUnpin for BlockCacheStats
impl UnwindSafe for BlockCacheStats
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