pub trait ResourceReader:
Send
+ Sync
+ 'static {
// Required method
fn latest(&self) -> ResourceSnapshot;
}Expand description
Read-only access to the latest smoothed resource snapshot.
This is the interface consumed by the scheduler for IO budget decisions.
The sampler loop updates it; the scheduler reads it. Separating this from
ResourceSampler keeps the public API clean — consumers only see the
latest reading, never the sampling mechanics.
Required Methods§
Sourcefn latest(&self) -> ResourceSnapshot
fn latest(&self) -> ResourceSnapshot
The most recent smoothed snapshot.