Skip to main content

NonCacheReporter

Trait NonCacheReporter 

Source
pub trait NonCacheReporter: Send + Sync {
    // Required methods
    fn name(&self) -> &str;
    fn current_bytes(&self) -> u64;
}
Expand description

A subsystem that reports its current non-cache memory footprint.

Required Methods§

Source

fn name(&self) -> &str

Short label surfaced on the budget tick (e.g. reasoner).

Source

fn current_bytes(&self) -> u64

Bytes this subsystem is currently holding. Best-effort — an estimate is fine; the budget uses it for attribution, not eviction.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§