Enum diagnostics_reader::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<Severity, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<Severity, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Ord for Severity
impl Ord for Severity
source§impl PartialEq<Severity> for Severity
impl PartialEq<Severity> for Severity
source§impl PartialEq for Severity
impl PartialEq for Severity
source§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 moresource§impl PartialOrd for Severity
impl PartialOrd 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 moresource§impl Serialize for Severity
impl Serialize for Severity
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __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 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