Enum actix_tools::sentry::sentry_client::Level [−]
pub enum Level {
Debug,
Info,
Warning,
Error,
Fatal,
}Represents the level of severity of an event or breadcrumb.
Variants
DebugIndicates very spammy debug information.
InfoInformational messages.
WarningA warning.
ErrorAn error.
FatalSimilar to error but indicates a critical event that usually causes a shutdown.
Methods
impl Level
impl Levelpub fn is_debug(&self) -> bool
pub fn is_debug(&self) -> boolA quick way to check if the level is debug.
pub fn is_info(&self) -> bool
pub fn is_info(&self) -> boolA quick way to check if the level is info.
pub fn is_warning(&self) -> bool
pub fn is_warning(&self) -> boolA quick way to check if the level is warning.
pub fn is_error(&self) -> bool
pub fn is_error(&self) -> boolA quick way to check if the level is error.
pub fn is_fatal(&self) -> bool
pub fn is_fatal(&self) -> boolA quick way to check if the level is fatal.
Trait Implementations
impl Serialize for Level
impl Serialize for Levelfn 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 PartialOrd<Level> for Level
impl PartialOrd<Level> for Levelfn 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
fn lt(&self, other: &Rhs) -> bool1.0.0[src]
fn lt(&self, other: &Rhs) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &Rhs) -> bool1.0.0[src]
fn le(&self, other: &Rhs) -> boolThis method tests less than or equal to (for self and other) and is used by the <= operator. Read more
fn gt(&self, other: &Rhs) -> bool1.0.0[src]
fn gt(&self, other: &Rhs) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &Rhs) -> bool1.0.0[src]
fn ge(&self, other: &Rhs) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl Hash for Level
impl Hash for Levelfn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
fn hash<__H>(&self, state: &mut __H) where
__H: Hasher, Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, Feeds a slice of this type into the given [Hasher]. Read more
impl Display for Level
impl Display for Levelfn fmt(&self, f: &mut Formatter) -> Result<(), Error>
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>Formats the value using the given formatter. Read more
impl Clone for Level
impl Clone for Levelfn clone(&self) -> Level
fn clone(&self) -> LevelReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl FromStr for Level
impl FromStr for Leveltype Err = ParseLevelError
The associated error which can be returned from parsing.
fn from_str(string: &str) -> Result<Level, <Level as FromStr>::Err>
fn from_str(string: &str) -> Result<Level, <Level as FromStr>::Err>Parses a string s to return a value of this type. Read more
impl Default for Level
impl Default for Levelimpl Debug for Level
impl Debug for Levelfn fmt(&self, f: &mut Formatter) -> Result<(), Error>
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>Formats the value using the given formatter. Read more
impl<'de> Deserialize<'de> for Level
impl<'de> Deserialize<'de> for Levelfn deserialize<D>(
deserializer: D
) -> Result<Level, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
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 Copy for Level
impl Copy for Levelimpl Ord for Level
impl Ord for Levelfn cmp(&self, other: &Level) -> Ordering
fn cmp(&self, other: &Level) -> OrderingThis method returns an Ordering between self and other. Read more
fn max(self, other: Self) -> Self1.21.0[src]
fn max(self, other: Self) -> SelfCompares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self1.21.0[src]
fn min(self, other: Self) -> SelfCompares and returns the minimum of two values. Read more
impl Eq for Level
impl Eq for Levelimpl PartialEq<Level> for Level
impl PartialEq<Level> for Level