#[repr(usize)]pub enum Level {
Error = 100,
Warn = 200,
Info = 300,
Debug = 400,
Trace = 500,
}
Expand description
An enum representing the available verbosity levels of the logger.
Variants§
Error = 100
The “error” level.
Designates very serious errors.
Warn = 200
The “warn” level.
Designates hazardous situations.
Info = 300
The “info” level.
Designates useful information.
Debug = 400
The “debug” level.
Designates lower priority information.
Trace = 500
The “trace” level.
Designates very low priority, often extremely verbose, information.
Implementations§
Source§impl Level
impl Level
Sourcepub fn as_str(&self) -> &'static str
pub fn as_str(&self) -> &'static str
Return the string representation of the Level
.
This returns the same string as the fmt::Display
implementation.
Sourcepub fn to_level_filter(&self) -> LevelFilter
pub fn to_level_filter(&self) -> LevelFilter
Convert the Level
to the equivalent LevelFilter
.
Trait Implementations§
Source§impl Ord for Level
impl Ord for Level
Source§impl PartialEq<Level> for LevelFilter
impl PartialEq<Level> for LevelFilter
Source§impl PartialEq<LevelFilter> for Level
impl PartialEq<LevelFilter> for Level
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 Level
impl PartialOrd for Level
impl Copy for Level
impl Eq for Level
impl StructuralPartialEq for Level
Auto Trait Implementations§
impl Freeze for Level
impl RefUnwindSafe for Level
impl Send for Level
impl Sync for Level
impl Unpin for Level
impl UnwindSafe for Level
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