Skip to main content

OutputFilter

Trait OutputFilter 

Source
pub trait OutputFilter: Send + Sync {
    // Required methods
    fn name(&self) -> &'static str;
    fn matcher(&self) -> &CommandMatcher;
    fn filter(
        &self,
        command: &str,
        raw_output: &str,
        exit_code: i32,
    ) -> FilterResult;
}
Expand description

Command-aware output filter.

Required Methods§

Source

fn name(&self) -> &'static str

Source

fn matcher(&self) -> &CommandMatcher

Source

fn filter( &self, command: &str, raw_output: &str, exit_code: i32, ) -> FilterResult

Implementors§