pub trait CacheMonitor<'a> {
// Required methods
fn poll(&mut self) -> Result<()>;
fn consume(&mut self, cb: &mut dyn FnMut(CacheMonitorValue)) -> Result<()>;
}
Expand description
Trait representing a cache monitor instance.
pub trait CacheMonitor<'a> {
// Required methods
fn poll(&mut self) -> Result<()>;
fn consume(&mut self, cb: &mut dyn FnMut(CacheMonitorValue)) -> Result<()>;
}
Trait representing a cache monitor instance.