#[repr(u8)]pub enum Level {
Error = 1,
Warning = 2,
Information = 3,
Debug = 4,
Trace = 5,
}Expand description
The severity of a log message, from the most severe (Level::Error) to
the least (Level::Trace).
Levels are ordered by verbosity, like the log crate’s: Error is the
smallest and Trace the largest.
Variants§
Implementations§
Source§impl Level
impl Level
Sourcepub const Warn: Level = Level::Warning
👎Deprecated: use Level::Warning
pub const Warn: Level = Level::Warning
use Level::Warning
Former name of Level::Warning, kept for one release.
It works in expressions and patterns, but as an associated constant it
cannot be imported: use log::Level::Warn no longer compiles.
Sourcepub const Info: Level = Level::Information
👎Deprecated: use Level::Information
pub const Info: Level = Level::Information
use Level::Information
Former name of Level::Information, kept for one release.
It works in expressions and patterns, but as an associated constant it
cannot be imported: use log::Level::Info no longer compiles.
Trait Implementations§
Source§impl From<Level> for LevelFilter
impl From<Level> for LevelFilter
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 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 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 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