[][src]Enum kg_diag::Severity

pub enum Severity {
    Info,
    Warning,
    Error,
    Failure,
    Critical,
}

Variants

InfoWarningError

error that is recoverable (i.e. process might continue and check additional diagnostics)

Failure

non-recoverable error

Critical

fatal error, usually terminating the process abnormally (like OOM errors)

Methods

impl Severity[src]

pub fn code_byte(&self) -> u8[src]

pub fn code_char(&self) -> char[src]

pub fn is_error(&self) -> bool[src]

pub fn is_recoverable(&self) -> bool[src]

Trait Implementations

impl Eq for Severity[src]

impl Clone for Severity[src]

impl PartialOrd<Severity> for Severity[src]

impl Ord for Severity[src]

impl PartialEq<Severity> for Severity[src]

impl Copy for Severity[src]

impl Hash for Severity[src]

impl Display for Severity[src]

impl Debug for Severity[src]

impl<'a> TryFrom<&'a str> for Severity[src]

type Error = &'a str

The type returned in the event of a conversion error.

impl TryFrom<char> for Severity[src]

type Error = char

The type returned in the event of a conversion error.

Auto Trait Implementations

Blanket Implementations

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

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

type Owned = T

The resulting type after obtaining ownership.

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

impl<T> From<T> for T[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<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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