Enum witchcraft_log::LevelFilter
source · #[repr(usize)]pub enum LevelFilter {
Off = 0,
Fatal = 1,
Error = 2,
Warn = 3,
Info = 4,
Debug = 5,
Trace = 6,
}
Expand description
A filter for log record verbosity levels.
The variants match Level
’s, with the addition of Off
, which filters out all log messages.
Variants§
Off = 0
A level lower than all log levels.
Fatal = 1
Corresponds to the Fatal
log level.
Error = 2
Corresponds to the Error
log level.
Warn = 3
Corresponds to the Warn
log level.
Info = 4
Corresponds to the Info
log level.
Debug = 5
Corresponds to the Debug
log level.
Trace = 6
Corresponds to the Trace
log level.
Trait Implementations§
source§impl Clone for LevelFilter
impl Clone for LevelFilter
source§fn clone(&self) -> LevelFilter
fn clone(&self) -> LevelFilter
Returns a copy of the value. Read more
1.0.0 · 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<'de> Deserialize<'de> for LevelFilter
impl<'de> Deserialize<'de> for LevelFilter
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for LevelFilter
impl Display for LevelFilter
source§impl FromStr for LevelFilter
impl FromStr for LevelFilter
§type Err = FromStrError
type Err = FromStrError
The associated error which can be returned from parsing.
source§fn from_str(s: &str) -> Result<LevelFilter, FromStrError>
fn from_str(s: &str) -> Result<LevelFilter, FromStrError>
Parses a string
s
to return a value of this type. Read moresource§impl Ord for LevelFilter
impl Ord for LevelFilter
source§fn cmp(&self, other: &LevelFilter) -> Ordering
fn cmp(&self, other: &LevelFilter) -> Ordering
1.21.0 · 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
This method 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
This method 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§fn partial_cmp(&self, other: &LevelFilter) -> Option<Ordering>
fn partial_cmp(&self, other: &LevelFilter) -> Option<Ordering>
source§fn lt(&self, other: &LevelFilter) -> bool
fn lt(&self, other: &LevelFilter) -> bool
source§fn le(&self, other: &LevelFilter) -> bool
fn le(&self, other: &LevelFilter) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§fn gt(&self, other: &LevelFilter) -> bool
fn gt(&self, other: &LevelFilter) -> bool
source§impl PartialOrd for LevelFilter
impl PartialOrd for LevelFilter
source§fn partial_cmp(&self, other: &LevelFilter) -> Option<Ordering>
fn partial_cmp(&self, other: &LevelFilter) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for LevelFilter
impl Serialize 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 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