pub struct RustLogFilter { /* 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 crate level documentation about the directive syntax and use cases.
Trait Implementations§
Source§impl Debug for RustLogFilter
impl Debug for RustLogFilter
Source§impl Filter for RustLogFilter
impl Filter for RustLogFilter
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<'a> From<&'a str> for RustLogFilter
impl<'a> From<&'a str> for RustLogFilter
Source§impl From<LevelFilter> for RustLogFilter
impl From<LevelFilter> for RustLogFilter
Source§fn from(filter: LevelFilter) -> Self
fn from(filter: LevelFilter) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RustLogFilter
impl RefUnwindSafe for RustLogFilter
impl Send for RustLogFilter
impl Sync for RustLogFilter
impl Unpin for RustLogFilter
impl UnsafeUnpin for RustLogFilter
impl UnwindSafe for RustLogFilter
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