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§
fn save_events(&self, events: VecDeque<SCOutputEvent>)
Sourcefn get_filtered_sc_output_events(
&self,
filter: &EventFilter,
) -> Result<Vec<SCOutputEvent>, String>
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.