pub struct Level { /* private fields */ }Expand description
One standard output log level.
Implementations§
Source§impl Level
impl Level
pub const FATAL: Self
pub const ERROR: Self
pub const WARN: Self
pub const INFO: Self
pub const DEBUG: Self
pub const VERBOSE: Self
pub const TRACE: Self
pub const SILLY: Self
pub const fn new(mask: LevelMask, name: &'static str) -> Self
pub const fn mask(self) -> LevelMask
pub const fn name(self) -> &'static str
pub const fn from_mask(mask: LevelMask) -> Option<Self>
Trait Implementations§
Source§impl From<Level> for OwnedLevelSpec
impl From<Level> for OwnedLevelSpec
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