Skip to main content

Cache

Trait Cache 

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

Source

fn prop_spec(&self) -> Result<PropertySpec>

Property spec for the objects in this cache.

Source

fn process_update(&mut self, update: Vec<ObjectUpdate>) -> Result<()>

Apply an update to the cache.

Implementors§