#[non_exhaustive]#[repr(i32)]pub enum Severity {
LOG_EMERG = 0,
LOG_ALERT = 1,
LOG_CRIT = 2,
LOG_ERR = 3,
LOG_WARNING = 4,
LOG_NOTICE = 5,
LOG_INFO = 6,
LOG_DEBUG = 7,
}Available on crate feature
syslog only.Expand description
Severity levels for log messages.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
LOG_EMERG = 0
A panic condition.
This is normally broadcast to all users.
LOG_ALERT = 1
A condition that should be corrected immediately, such as a corrupted system database.
LOG_CRIT = 2
Critical conditions, e.g., hard device errors.
LOG_ERR = 3
Errors.
LOG_WARNING = 4
Warning messages.
LOG_NOTICE = 5
Conditions that are not error conditions, but should possibly be handled specially.
LOG_INFO = 6
Informational messages.
LOG_DEBUG = 7
Messages that contain information normally of use only when debugging a program.
Trait Implementations§
impl Copy for Severity
impl Eq for Severity
Source§impl Ord for Severity
impl Ord for Severity
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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for Severity
impl PartialOrd for Severity
impl StructuralPartialEq for Severity
Auto Trait Implementations§
impl Freeze for Severity
Available on Unix only.
impl RefUnwindSafe for Severity
Available on Unix only.
impl Send for Severity
Available on Unix only.
impl Sync for Severity
Available on Unix only.
impl Unpin for Severity
Available on Unix only.
impl UnsafeUnpin for Severity
Available on Unix only.
impl UnwindSafe for Severity
Available on Unix only.
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Available on Unix only.
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Available on Unix only.
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
Available on Unix only.
impl<T> CloneToUninit for Twhere
T: Clone,
Available on Unix only.