#[repr(u8)]pub enum LevelFilter {
Off = 0,
Error = 1,
Warning = 2,
Information = 3,
Debug = 4,
Trace = 5,
}Expand description
The most verbose level that passes a filter, or LevelFilter::Off to let
nothing pass.
A filter lets a level pass when the level is at most as verbose as the
filter: LevelFilter::Warning lets errors and warnings pass.
Variants§
Implementations§
Source§impl LevelFilter
impl LevelFilter
Sourcepub const ALL: [LevelFilter; 6]
pub const ALL: [LevelFilter; 6]
Every filter, from LevelFilter::Off to the most verbose.
Sourcepub const fn as_str(self) -> &'static str
pub const fn as_str(self) -> &'static str
The lowercase name of the filter, as it prints and parses.
Sourcepub const fn level(self) -> Option<Level>
pub const fn level(self) -> Option<Level>
The most verbose level that passes, or None for LevelFilter::Off.
Trait Implementations§
Source§impl Clone for LevelFilter
impl Clone for LevelFilter
Source§fn clone(&self) -> LevelFilter
fn clone(&self) -> LevelFilter
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LevelFilter
impl Debug for LevelFilter
Source§impl Display for LevelFilter
impl Display for LevelFilter
Source§impl From<Level> for LevelFilter
impl From<Level> for LevelFilter
Source§impl FromStr for LevelFilter
impl FromStr for LevelFilter
Source§impl Hash for LevelFilter
impl Hash for LevelFilter
Source§impl Ord for LevelFilter
impl Ord for LevelFilter
Source§fn cmp(&self, other: &LevelFilter) -> Ordering
fn cmp(&self, other: &LevelFilter) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq<Level> for LevelFilter
impl PartialEq<Level> for LevelFilter
Source§impl PartialEq<LevelFilter> for Level
impl PartialEq<LevelFilter> for Level
Source§fn eq(&self, other: &LevelFilter) -> bool
fn eq(&self, other: &LevelFilter) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialEq for LevelFilter
impl PartialEq for LevelFilter
Source§fn eq(&self, other: &LevelFilter) -> bool
fn eq(&self, other: &LevelFilter) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd<Level> for LevelFilter
impl PartialOrd<Level> for LevelFilter
Source§impl PartialOrd<LevelFilter> for Level
impl PartialOrd<LevelFilter> for Level
Source§impl PartialOrd for LevelFilter
impl PartialOrd for LevelFilter
impl Copy for LevelFilter
impl Eq for LevelFilter
impl StructuralPartialEq for LevelFilter
Auto Trait Implementations§
impl Freeze for LevelFilter
impl RefUnwindSafe for LevelFilter
impl Send for LevelFilter
impl Sync for LevelFilter
impl Unpin for LevelFilter
impl UnsafeUnpin for LevelFilter
impl UnwindSafe for LevelFilter
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