[]Enum sentry::protocol::Level

pub enum Level {
    Debug,
    Info,
    Warning,
    Error,
    Fatal,
}

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

pub fn is_debug(&self) -> bool

A quick way to check if the level is debug.

pub fn is_info(&self) -> bool

A quick way to check if the level is info.

pub fn is_warning(&self) -> bool

A quick way to check if the level is warning.

pub fn is_error(&self) -> bool

A quick way to check if the level is error.

pub fn is_fatal(&self) -> bool

A quick way to check if the level is fatal.

Trait Implementations

impl Clone for Level

impl Copy for Level

impl Debug for Level

impl Default for Level

impl<'de> Deserialize<'de> for Level

impl Display for Level

impl Eq for Level

impl FromStr for Level

type Err = ParseLevelError

The associated error which can be returned from parsing.

impl Hash for Level

impl Ord for Level

impl PartialEq<Level> for Level

impl PartialOrd<Level> for Level

impl Serialize for Level

impl StructuralEq for Level

impl StructuralPartialEq for Level

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized

impl<T> Serialize for T where
    T: Serialize + ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]