Enum log::LogLevelFilter [] [src]

pub enum LogLevelFilter {
    Off,
    Error,
    Warn,
    Info,
    Debug,
    Trace,
}

An enum representing the available verbosity level filters of the logging framework.

A LogLevelFilter may be compared directly to a LogLevel.

Variants

Off

A level lower than all log levels.

Error

Corresponds to the Error log level.

Warn

Corresponds to the Warn log level.

Info

Corresponds to the Trace log level.

Debug

Corresponds to the Debug log level.

Trace

Corresponds to the Trace log level.

Methods

impl LogLevelFilter

fn max() -> LogLevelFilter

Returns the most verbose logging level filter.

fn to_log_level(&self) -> Option<LogLevel>

Converts self to the equivalent LogLevel.

Returns None if self is LogLevelFilter::Off.

Trait Implementations

impl Clone for LogLevelFilter

fn clone(&self) -> LogLevelFilter

fn clone_from(&mut self, source: &Self)

impl PartialEq for LogLevelFilter

fn eq(&self, other: &LogLevelFilter) -> bool

fn ne(&self, other: &Rhs) -> bool

impl PartialEq<LogLevel> for LogLevelFilter

fn eq(&self, other: &LogLevel) -> bool

fn ne(&self, other: &Rhs) -> bool

impl PartialOrd for LogLevelFilter

fn partial_cmp(&self, other: &LogLevelFilter) -> Option<Ordering>

fn lt(&self, other: &Rhs) -> bool

fn le(&self, other: &Rhs) -> bool

fn gt(&self, other: &Rhs) -> bool

fn ge(&self, other: &Rhs) -> bool

impl PartialOrd<LogLevel> for LogLevelFilter

fn partial_cmp(&self, other: &LogLevel) -> Option<Ordering>

fn lt(&self, other: &Rhs) -> bool

fn le(&self, other: &Rhs) -> bool

fn gt(&self, other: &Rhs) -> bool

fn ge(&self, other: &Rhs) -> bool

impl Ord for LogLevelFilter

fn cmp(&self, other: &LogLevelFilter) -> Ordering

impl FromStr for LogLevelFilter

type Err = ()

fn from_str(level: &str) -> Result<LogLevelFilter, ()>

impl Display for LogLevelFilter

fn fmt(&self, fmt: &mut Formatter) -> Result

Derived Implementations

impl Debug for LogLevelFilter

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Eq for LogLevelFilter

impl Copy for LogLevelFilter