#[repr(u16)]pub enum LogLevel {
Trace = 1,
Debug = 2,
Info = 3,
Warn = 4,
Error = 5,
}
Expand description
An enum representing the available verbosity levels of the logger.
It is very similar to the log::Level
, but serializes to unsigned ints instead of strings.
Variants§
Trace = 1
The “trace” level.
Designates very low priority, often extremely verbose, information.
Debug = 2
The “debug” level.
Designates lower priority information.
Info = 3
The “info” level.
Designates useful information.
Warn = 4
The “warn” level.
Designates hazardous situations.
Error = 5
The “error” level.
Designates very serious errors.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LogLevel
impl<'de> Deserialize<'de> for LogLevel
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
Auto Trait Implementations§
impl Freeze for LogLevel
impl RefUnwindSafe for LogLevel
impl Send for LogLevel
impl Sync for LogLevel
impl Unpin for LogLevel
impl UnwindSafe for LogLevel
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