pub enum Level {
Debug = 0,
Info = 1,
Warning = 2,
Error = 3,
Critical = 4,
}Expand description
Severity level of a log message, ordered from least to most severe.
The numeric values are stable and used for cheap comparisons and for
storing the level in an atomic (as u8 / Level::from_u8).
Variants§
Debug = 0
Fine-grained detail for diagnosing problems.
Info = 1
Routine confirmation that things are working.
Warning = 2
Something unexpected, or a problem that may occur soon.
Error = 3
A failure that prevented some operation from completing.
Critical = 4
A severe failure; the program may be unable to continue.
Implementations§
Trait Implementations§
impl Copy for Level
impl Eq for Level
Source§impl Ord for Level
impl Ord for Level
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 PartialOrd for Level
impl PartialOrd 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 UnsafeUnpin 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