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§
Sourcefn current_bytes(&self) -> u64
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".