[][src]Enum clout::Level

pub enum Level {
    Silent,
    Error,
    Warn,
    Success,
    Status,
    Info,
    Debug,
    Trace,
}

The different levels of importance of a message Also used to determine what level of messages should be displayed

Variants

Silent

Display absolutely nothing

Error

Error is for messages indicating that an operation cannot proceed. Styled as bold red.

Warn

Warn is for messages indicating that an operation will proceed but may not do what the user wanted. Styled as bold yellow.

Success

Success is for messages indicating a successful operation. Generally should be output whenever Status is being output. Styled as green.

Status

Status is the usual messages that indicate what an operation is doing. Unstyled, uses terminal default color.

Info

Info is for messages that the user might find useful but are not essential. Styled as white (which is often the terminal default, and may not look different to Status)

Debug

Debug is for messages that are useful for the developer, or when submitting bug reports, but are not useful for general use. Styled as cyan.

Trace

Trace is for messages that indicate at a low level what the operation is doing. Usually too noisy for a bug report, but might be used for debugging. Styled as magenta.

Trait Implementations

impl Clone for Level[src]

impl Copy for Level[src]

impl Debug for Level[src]

impl PartialEq<Level> for Level[src]

impl PartialOrd<Level> for Level[src]

impl StructuralPartialEq for Level[src]

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

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> From<T> for T[src]

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

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

type Owned = T

The resulting type after obtaining ownership.

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.