Trait Filter

Source
pub trait Filter:
    Send
    + Sync
    + 'static {
    // Required methods
    fn boxed(self) -> Result<Box<dyn Filter>, Error>;
    fn log(&self, record: &Record<'_>) -> bool;
    fn enabled(&self, metadata: &Metadata<'_>) -> bool;
    fn maxlevel(&self) -> LevelFilter;
}

Required Methods§

Source

fn boxed(self) -> Result<Box<dyn Filter>, Error>

Source

fn log(&self, record: &Record<'_>) -> bool

Source

fn enabled(&self, metadata: &Metadata<'_>) -> bool

Source

fn maxlevel(&self) -> LevelFilter

Implementors§