pub enum Severity {
Debug,
Info,
Warn,
Error,
Critical,
}Expand description
Unified severity level for both tracing and ErrorChannel
Ordered from least to most severe for comparison operations.
Variants§
Debug
Development debugging (shown only in debug mode)
Info
Informational message
Warn
Warning (operation continues)
Error
Error (recoverable)
Critical
Critical error (may require restart)
Implementations§
Source§impl Severity
impl Severity
Sourcepub fn to_tracing_level(self) -> Level
pub fn to_tracing_level(self) -> Level
Convert to tracing::Level
Sourcepub fn is_production_visible(self) -> bool
pub fn is_production_visible(self) -> bool
Check if this severity should be shown in production
Trait Implementations§
Source§impl Ord for Severity
impl Ord for Severity
Source§impl PartialOrd for Severity
impl PartialOrd for Severity
impl Copy for Severity
impl Eq for Severity
impl StructuralPartialEq 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