pub enum Level {
Critical,
Error,
Warning,
Info,
Debug,
Trace,
}
Expand description
Logging level associated with a logging Record
Variants§
Implementations§
Source§impl Level
impl Level
Sourcepub fn as_short_str(&self) -> &'static str
pub fn as_short_str(&self) -> &'static str
Convert to str
from LOG_LEVEL_SHORT_NAMES
Sourcepub fn as_usize(&self) -> usize
pub fn as_usize(&self) -> usize
Cast Level
to ordering integer
Critical
is the smallest and Trace
the biggest value
Sourcepub fn from_usize(u: usize) -> Option<Level>
pub fn from_usize(u: usize) -> Option<Level>
Get a Level
from an usize
This complements as_usize
Trait Implementations§
Source§impl Ord for Level
impl Ord 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