pub struct OutputFilterRegistry { /* private fields */ }Expand description
Registry of filters with pipeline support, security whitelist, and metrics.
Implementations§
Source§impl OutputFilterRegistry
impl OutputFilterRegistry
pub fn new(enabled: bool) -> Self
pub fn register(&mut self, filter: Box<dyn OutputFilter>)
pub fn default_filters(config: &FilterConfig) -> Self
pub fn apply( &self, command: &str, raw_output: &str, exit_code: i32, ) -> Option<FilterResult>
pub fn metrics(&self) -> FilterMetrics
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for OutputFilterRegistry
impl !RefUnwindSafe for OutputFilterRegistry
impl Send for OutputFilterRegistry
impl Sync for OutputFilterRegistry
impl Unpin for OutputFilterRegistry
impl UnsafeUnpin for OutputFilterRegistry
impl !UnwindSafe for OutputFilterRegistry
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more