ProcessingStore

Trait ProcessingStore 

Source
pub trait ProcessingStore {
    // Required methods
    fn add_format(&self, id: String, format: String);
    fn get_format(&self, id: &str) -> Option<String>;
    fn get_formats(&self) -> Vec<Format>;
    fn add_filter(
        &self,
        id: String,
        filter: LogLine,
        action: FilterAction,
        enabled: bool,
    );
    fn get_filters(&self) -> Vec<(bool, Filter)>;
    fn toggle_filter(&self, id: &str);
}
Expand description

Store holding all the processing information. Format and filter definitions

Required Methods§

Source

fn add_format(&self, id: String, format: String)

Add a new format to the store

  • id: alias
  • format: regex formatting
Source

fn get_format(&self, id: &str) -> Option<String>

Get the format data for the requested format alias

Source

fn get_formats(&self) -> Vec<Format>

Get a list of formats

Source

fn add_filter( &self, id: String, filter: LogLine, action: FilterAction, enabled: bool, )

Add a new filter to the store

  • id: alias
  • filter: log line regex definitions
Source

fn get_filters(&self) -> Vec<(bool, Filter)>

Get a list of filters together with their enabled state

Source

fn toggle_filter(&self, id: &str)

Switch the enabled state for the given filter

Implementors§