pub trait OutputFilter: Send + Sync {
// Required methods
fn name(&self) -> &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§
fn name(&self) -> &str
fn matcher(&self) -> &CommandMatcher
fn filter( &self, command: &str, raw_output: &str, exit_code: i32, ) -> FilterResult
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".