Skip to main content

RangeCacheMetricsReport

Trait RangeCacheMetricsReport 

Source
pub(crate) trait RangeCacheMetricsReport: Send + Sync {
    // Required methods
    fn inc_range_cache_hit(&self);
    fn inc_range_cache_miss(&self);
    fn inc_range_cache_size(&self, bytes: usize);
}
Expand description

Reports cache activity to the query that owns the reader or publication.

Required Methods§

Source

fn inc_range_cache_hit(&self)

Records a completed-result hit for this reader.

Source

fn inc_range_cache_miss(&self)

Records a reader without a deliverable completed result.

Source

fn inc_range_cache_size(&self, bytes: usize)

Records bytes published by the reader that finishes the shared scan.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§