[][src]Enum mhlog::Lvl

pub enum Lvl {
    Fatal,
    Error,
    Warning,
    Important,
    Info,
    Debug,
    Trace,
}

Logging levels.

Variants

Fatal
Error
Warning
Important
Info
Debug
Trace

Methods

impl Lvl[src]

pub fn from_env(name: &str) -> Result<Self, LogError>[src]

Return logging level by matching the given environment variable string.

If the environment variable is empty or is unknown Lvl::default() is returned.

Trait Implementations

impl<'_> From<&'_ str> for Lvl[src]

impl Default for Lvl[src]

impl Debug for Lvl[src]

Auto Trait Implementations

impl Send for Lvl

impl Sync for Lvl

impl Unpin for Lvl

impl UnwindSafe for Lvl

impl RefUnwindSafe for Lvl

Blanket Implementations

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

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

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