pub struct EnvFilter { /* private fields */ }Expand description
A filter consists of one or more comma-separated directives which match on Record.
Each directive may have a corresponding maximum verbosity Level which enables
records that match.
Less exclusive levels (like trace or info) are considered to be more verbose than more
exclusive levels (like error or warn).
Read more from the module level documentation about the directive syntax and use cases.
Trait Implementations§
Source§impl Filter for EnvFilter
impl Filter for EnvFilter
Source§fn enabled(
&self,
criteria: &FilterCriteria<'_>,
_: &[Box<dyn Diagnostic>],
) -> FilterResult
fn enabled( &self, criteria: &FilterCriteria<'_>, _: &[Box<dyn Diagnostic>], ) -> FilterResult
Whether the record is filtered by its given metadata.
Source§fn matches(
&self,
record: &Record<'_>,
diags: &[Box<dyn Diagnostic>],
) -> FilterResult
fn matches( &self, record: &Record<'_>, diags: &[Box<dyn Diagnostic>], ) -> FilterResult
Whether the record is filtered.
Source§impl From<LevelFilter> for EnvFilter
impl From<LevelFilter> for EnvFilter
Source§fn from(filter: LevelFilter) -> EnvFilter
fn from(filter: LevelFilter) -> EnvFilter
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for EnvFilter
impl RefUnwindSafe for EnvFilter
impl Send for EnvFilter
impl Sync for EnvFilter
impl Unpin for EnvFilter
impl UnwindSafe for EnvFilter
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