#[repr(u8)]pub enum Severity {
Emerg = 0,
Alert = 1,
Crit = 2,
Err = 3,
Warning = 4,
Notice = 5,
Info = 6,
Debug = 7,
}Expand description
Indicates how urgent a log message is.
Ordered from most critical (Emerg) to least (Debug).
Variants§
Emerg = 0
System is unusable; immediate human intervention required.
Alert = 1
A condition that must be corrected immediately to prevent further damage.
Crit = 2
A serious failure that may still allow the system to keep running.
Err = 3
An error that prevented an operation from completing.
Warning = 4
Something unexpected happened, but the system can continue.
Notice = 5
A normal but significant event worth tracking.
Info = 6
Routine operational information confirming expected behaviour.
Debug = 7
Detailed information useful only when diagnosing problems.
Trait Implementations§
Source§impl TryFrom<i32> for Severity
Accepts libc::c_int to support bridging from C syslog APIs that represent severities as plain
integers.
impl TryFrom<i32> for Severity
Accepts libc::c_int to support bridging from C syslog APIs that represent severities as plain
integers.
Source§impl TryFrom<u8> for Severity
Delegates to the i32 implementation to keep conversion logic in one place.
impl TryFrom<u8> for Severity
Delegates to the i32 implementation to keep conversion logic in one place.
impl Copy for Severity
Auto Trait Implementations§
impl Freeze for Severity
impl RefUnwindSafe for Severity
impl Send for Severity
impl Sync for Severity
impl Unpin for Severity
impl UnsafeUnpin for Severity
impl UnwindSafe for Severity
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