pub enum Severity {
Trace,
Debug,
Info,
Warn,
Error,
}Expand description
OTel severity buckets. Stored alongside severity_number so consumers
can range-compare numerically and pattern-match textually.
Variants§
Implementations§
Source§impl Severity
impl Severity
pub const TRACE: Self = Self::Trace
pub const DEBUG: Self = Self::Debug
pub const INFO: Self = Self::Info
pub const WARN: Self = Self::Warn
pub const ERROR: Self = Self::Error
pub fn text(self) -> &'static str
Sourcepub fn from_tracing_level(level: Level) -> Self
pub fn from_tracing_level(level: Level) -> Self
Convert from a tracing::Level.
Trait Implementations§
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