EventCacheController

Trait EventCacheController 

Source
pub trait EventCacheController: Send + Sync {
    // Required methods
    fn save_events(&self, events: VecDeque<SCOutputEvent>);
    fn get_filtered_sc_output_events(
        &self,
        filter: &EventFilter,
    ) -> Result<Vec<SCOutputEvent>, String>;
}
Expand description

interface that communicates with the worker thread

Required Methods§

Source

fn save_events(&self, events: VecDeque<SCOutputEvent>)

Source

fn get_filtered_sc_output_events( &self, filter: &EventFilter, ) -> Result<Vec<SCOutputEvent>, String>

Events matching filter, from the queue of events not written yet and from the cache.

Fails if the cache query would scan more than its configured number of index keys.

Implementors§