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§
Sourcefn inc_range_cache_hit(&self)
fn inc_range_cache_hit(&self)
Records a completed-result hit for this reader.
Sourcefn inc_range_cache_miss(&self)
fn inc_range_cache_miss(&self)
Records a reader without a deliverable completed result.
Sourcefn inc_range_cache_size(&self, bytes: usize)
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".