#[repr(i32)]pub enum Severity {
SEVERITY_UNSPECIFIED = 0,
SEVERITY_TRACE = 1,
SEVERITY_DEBUG = 2,
SEVERITY_INFO = 3,
SEVERITY_WARN = 4,
SEVERITY_ERROR = 5,
SEVERITY_FATAL = 6,
}Variants§
SEVERITY_UNSPECIFIED = 0
SEVERITY_TRACE = 1
SEVERITY_DEBUG = 2
SEVERITY_INFO = 3
SEVERITY_WARN = 4
SEVERITY_ERROR = 5
SEVERITY_FATAL = 6
Implementations§
Source§impl Severity
impl Severity
Sourcepub const Unspecified: Severity = Self::SEVERITY_UNSPECIFIED
pub const Unspecified: Severity = Self::SEVERITY_UNSPECIFIED
Short-name alias for Self::SEVERITY_UNSPECIFIED.
Sourcepub const Trace: Severity = Self::SEVERITY_TRACE
pub const Trace: Severity = Self::SEVERITY_TRACE
Short-name alias for Self::SEVERITY_TRACE.
Sourcepub const Debug: Severity = Self::SEVERITY_DEBUG
pub const Debug: Severity = Self::SEVERITY_DEBUG
Short-name alias for Self::SEVERITY_DEBUG.
Sourcepub const Info: Severity = Self::SEVERITY_INFO
pub const Info: Severity = Self::SEVERITY_INFO
Short-name alias for Self::SEVERITY_INFO.
Sourcepub const Warn: Severity = Self::SEVERITY_WARN
pub const Warn: Severity = Self::SEVERITY_WARN
Short-name alias for Self::SEVERITY_WARN.
Sourcepub const Error: Severity = Self::SEVERITY_ERROR
pub const Error: Severity = Self::SEVERITY_ERROR
Short-name alias for Self::SEVERITY_ERROR.
Sourcepub const Fatal: Severity = Self::SEVERITY_FATAL
pub const Fatal: Severity = Self::SEVERITY_FATAL
Short-name alias for Self::SEVERITY_FATAL.
Sourcepub const fn as_str(self) -> &'static str
pub const fn as_str(self) -> &'static str
Stable string label used in label values and CLI rendering.
Sourcepub const fn otlp_number(self) -> i32
pub const fn otlp_number(self) -> i32
Map to OTLP SeverityNumber (1..=24 with 4 buckets per band).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Severity
impl<'de> Deserialize<'de> for Severity
Source§fn deserialize<D>(d: D) -> Result<Severity, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(d: D) -> Result<Severity, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Enumeration for Severity
impl Enumeration for Severity
Source§fn from_i32(value: i32) -> Option<Severity>
fn from_i32(value: i32) -> Option<Severity>
Convert from an
i32 wire value to the enum. Read moreSource§fn proto_name(&self) -> &'static str
fn proto_name(&self) -> &'static str
The name of this enum variant as it appears in the
.proto file.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
Source§impl PartialOrd for Severity
impl PartialOrd for Severity
Source§impl Serialize for Severity
impl Serialize for Severity
Source§fn serialize<S>(
&self,
s: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
s: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.