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
sourceimpl Level
impl Level
sourcepub fn is_warning(&self) -> bool
pub fn is_warning(&self) -> bool
A quick way to check if the level is warning
.
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Level
impl<'de> Deserialize<'de> for Level
sourcefn 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
sourceimpl Ord for Level
impl Ord for Level
sourceimpl PartialOrd<Level> for Level
impl PartialOrd<Level> for Level
sourcefn partial_cmp(&self, other: &Level) -> Option<Ordering>
fn partial_cmp(&self, other: &Level) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn 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
impl Copy for Level
impl Eq for Level
impl StructuralEq for Level
impl StructuralPartialEq for Level
Auto Trait Implementations
impl RefUnwindSafe for Level
impl Send for Level
impl Sync for Level
impl Unpin for Level
impl UnwindSafe for Level
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more