pub trait Cache {
// Required methods
fn prop_spec(&self) -> Result<PropertySpec>;
fn process_update(&mut self, update: Vec<ObjectUpdate>) -> Result<()>;
}Expand description
A trait for PropertyCollector caches used by the infrastructure to dispatch updates.
Required Methods§
Sourcefn prop_spec(&self) -> Result<PropertySpec>
fn prop_spec(&self) -> Result<PropertySpec>
Property spec for the objects in this cache.
Sourcefn process_update(&mut self, update: Vec<ObjectUpdate>) -> Result<()>
fn process_update(&mut self, update: Vec<ObjectUpdate>) -> Result<()>
Apply an update to the cache.