Enum diagnostics_data::Severity
source · pub enum Severity {
Trace,
Debug,
Info,
Warn,
Error,
Fatal,
}
Expand description
Severities a log message can have, often called the log’s “level”.
Variants§
Trace
Trace records include detailed information about program execution.
Debug
Debug records include development-facing information about program execution.
Info
Info records include general information about program execution. (default)
Warn
Warning records include information about potentially problematic operations.
Error
Error records include information about failed operations.
Fatal
Fatal records convey information about operations which cause a program’s termination.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Severity
impl<'de> Deserialize<'de> for Severity
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<Severity> for FidlSeverity
impl From<Severity> for FidlSeverity
source§impl From<Severity> for LegacySeverity
impl From<Severity> for LegacySeverity
source§impl From<Severity> for Severity
impl From<Severity> for Severity
source§fn from(severity: FidlSeverity) -> Self
fn from(severity: FidlSeverity) -> Self
Converts to this type from the input type.
source§impl Ord for Severity
impl Ord for Severity
source§impl PartialEq<Severity> for Severity
impl PartialEq<Severity> for Severity
source§fn eq(&self, other: &FidlSeverity) -> bool
fn eq(&self, other: &FidlSeverity) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<Severity> for Severity
impl PartialEq<Severity> for Severity
source§impl PartialOrd<Severity> for Severity
impl PartialOrd<Severity> for Severity
source§fn partial_cmp(&self, other: &FidlSeverity) -> Option<Ordering>
fn partial_cmp(&self, other: &FidlSeverity) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl PartialOrd<Severity> for Severity
impl PartialOrd<Severity> for Severity
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more