CacheMonitor

Trait CacheMonitor 

Source
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.

Required Methods§

Source

fn poll(&mut self) -> Result<()>

Source

fn consume(&mut self, cb: &mut dyn FnMut(CacheMonitorValue)) -> Result<()>

Implementors§