pub trait FilterPlugin: Send + Sync {
// Required methods
fn info(&self) -> PluginInfo;
fn filter(&self, input: &FilterInput) -> Result<FilterOutput>;
}Expand description
Core trait for filter plugins. Implemented by both ProcessRunner and WasmRunner.
Required Methods§
Sourcefn info(&self) -> PluginInfo
fn info(&self) -> PluginInfo
Plugin metadata.
Sourcefn filter(&self, input: &FilterInput) -> Result<FilterOutput>
fn filter(&self, input: &FilterInput) -> Result<FilterOutput>
Apply filter to command output.