pub struct MinLevelFilter<L = Level> { /* private fields */ }Expand description
A Filter that matches events with a specific Level.
The level to match is pulled from the KEY_LVL well-known property. Events that don’t carry any specific level are treated as carrying a default one, as set by MinLevelFilter::treat_unleveled_as.
Implementations§
Source§impl<L> MinLevelFilter<L>
impl<L> MinLevelFilter<L>
Sourcepub const fn new(min: L) -> MinLevelFilter<L>
pub const fn new(min: L) -> MinLevelFilter<L>
Construct a new MinLevelFilter, treating unleveled events as Level::default.
Sourcepub fn treat_unleveled_as(self, default: L) -> Self
pub fn treat_unleveled_as(self, default: L) -> Self
Treat events without an explicit level as having default when evaluating against the filter.
Trait Implementations§
Source§impl<L: Debug> Debug for MinLevelFilter<L>
impl<L: Debug> Debug for MinLevelFilter<L>
Source§impl From<Level> for MinLevelFilter
impl From<Level> for MinLevelFilter
impl InternalFilter for MinLevelFilter
Auto Trait Implementations§
impl<L> Freeze for MinLevelFilter<L>where
L: Freeze,
impl<L> RefUnwindSafe for MinLevelFilter<L>where
L: RefUnwindSafe,
impl<L> Send for MinLevelFilter<L>where
L: Send,
impl<L> Sync for MinLevelFilter<L>where
L: Sync,
impl<L> Unpin for MinLevelFilter<L>where
L: Unpin,
impl<L> UnwindSafe for MinLevelFilter<L>where
L: UnwindSafe,
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