pub struct ChunkCacheStats { /* private fields */ }Expand description
A read-only snapshot of a dataset’s chunk-cache occupancy.
Returned by crate::Dataset::chunk_cache_stats. Use it to confirm a
chunk-cache configuration is taking effect: after reading a chunked dataset,
an enabled cache reports a loaded index and retained chunks, a disabled one
(or one over its byte/slot budget) reports fewer or none. The counts are a
point-in-time view and change as further reads populate or evict chunks.
Implementations§
Source§impl ChunkCacheStats
impl ChunkCacheStats
Sourcepub const fn index_loaded(&self) -> bool
pub const fn index_loaded(&self) -> bool
Whether the parsed chunk index is currently held in memory.
Sourcepub const fn cached_chunks(&self) -> usize
pub const fn cached_chunks(&self) -> usize
Number of decompressed chunks currently retained.
Sourcepub const fn cached_bytes(&self) -> usize
pub const fn cached_bytes(&self) -> usize
Total bytes of decompressed chunk data currently retained.
Trait Implementations§
Source§impl Clone for ChunkCacheStats
impl Clone for ChunkCacheStats
Source§fn clone(&self) -> ChunkCacheStats
fn clone(&self) -> ChunkCacheStats
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 ChunkCacheStats
Source§impl Debug for ChunkCacheStats
impl Debug for ChunkCacheStats
Source§impl Default for ChunkCacheStats
impl Default for ChunkCacheStats
Source§fn default() -> ChunkCacheStats
fn default() -> ChunkCacheStats
Returns the “default value” for a type. Read more
impl Eq for ChunkCacheStats
Source§impl PartialEq for ChunkCacheStats
impl PartialEq for ChunkCacheStats
Source§fn eq(&self, other: &ChunkCacheStats) -> bool
fn eq(&self, other: &ChunkCacheStats) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ChunkCacheStats
Auto Trait Implementations§
impl Freeze for ChunkCacheStats
impl RefUnwindSafe for ChunkCacheStats
impl Send for ChunkCacheStats
impl Sync for ChunkCacheStats
impl Unpin for ChunkCacheStats
impl UnsafeUnpin for ChunkCacheStats
impl UnwindSafe for ChunkCacheStats
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