pub enum Level {
Debug,
Info,
Warning,
Error,
Fatal,
}
Expand description
Represents the level of severity of an event or breadcrumb.
Variants
Debug
Indicates very spammy debug information.
Info
Informational messages.
Warning
A warning.
Error
An error.
Fatal
Similar to error but indicates a critical event that usually causes a shutdown.
Implementations
impl Level
impl Level
pub fn is_warning(&self) -> bool
pub fn is_warning(&self) -> bool
A quick way to check if the level is warning
.
Trait Implementations
impl<'de> Deserialize<'de> for Level
impl<'de> Deserialize<'de> for Level
pub fn deserialize<D>(
deserializer: D
) -> Result<Level, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
pub fn deserialize<D>(
deserializer: D
) -> Result<Level, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl PartialOrd<Level> for Level
impl PartialOrd<Level> for Level
pub fn partial_cmp(&self, other: &Level) -> Option<Ordering>
pub fn partial_cmp(&self, other: &Level) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
pub fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
pub 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 StructuralEq for Level
impl StructuralPartialEq for Level
Auto Trait Implementations
impl RefUnwindSafe for Level
impl UnwindSafe for Level
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more