Enum sozu_lib::logging::LogLevel [−][src]
#[repr(usize)]pub enum LogLevel { Error, Warn, Info, Debug, Trace, }
Variants
ErrorThe "error" level.
Designates very serious errors.
WarnThe "warn" level.
Designates hazardous situations.
InfoThe "info" level.
Designates useful information.
DebugThe "debug" level.
Designates lower priority information.
TraceThe "trace" level.
Designates very low priority, often extremely verbose, information.
Methods
impl LogLevel[src]
impl LogLevelpub fn max() -> LogLevel[src]
pub fn max() -> LogLevelReturns the most verbose logging level.
pub fn to_log_level_filter(&self) -> LogLevelFilter[src]
pub fn to_log_level_filter(&self) -> LogLevelFilterConverts the LogLevel to the equivalent LogLevelFilter.
Trait Implementations
impl Copy for LogLevel[src]
impl Copy for LogLevelimpl Eq for LogLevel[src]
impl Eq for LogLevelimpl Debug for LogLevel[src]
impl Debug for LogLevelfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Clone for LogLevel[src]
impl Clone for LogLevelfn clone(&self) -> LogLevel[src]
fn clone(&self) -> LogLevelReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl PartialEq for LogLevel[src]
impl PartialEq for LogLevelfn eq(&self, other: &LogLevel) -> bool[src]
fn eq(&self, other: &LogLevel) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl PartialEq<LogLevelFilter> for LogLevel[src]
impl PartialEq<LogLevelFilter> for LogLevelfn eq(&self, other: &LogLevelFilter) -> bool[src]
fn eq(&self, other: &LogLevelFilter) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl PartialOrd for LogLevel[src]
impl PartialOrd for LogLevelfn partial_cmp(&self, other: &LogLevel) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &LogLevel) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool1.0.0[src]
fn lt(&self, other: &Rhs) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &Rhs) -> bool1.0.0[src]
fn le(&self, other: &Rhs) -> boolThis method tests less than or equal to (for self and other) and is used by the <= operator. Read more
fn gt(&self, other: &Rhs) -> bool1.0.0[src]
fn gt(&self, other: &Rhs) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &Rhs) -> bool1.0.0[src]
fn ge(&self, other: &Rhs) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl PartialOrd<LogLevelFilter> for LogLevel[src]
impl PartialOrd<LogLevelFilter> for LogLevelfn partial_cmp(&self, other: &LogLevelFilter) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &LogLevelFilter) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool1.0.0[src]
fn lt(&self, other: &Rhs) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &Rhs) -> bool1.0.0[src]
fn le(&self, other: &Rhs) -> boolThis method tests less than or equal to (for self and other) and is used by the <= operator. Read more
fn gt(&self, other: &Rhs) -> bool1.0.0[src]
fn gt(&self, other: &Rhs) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &Rhs) -> bool1.0.0[src]
fn ge(&self, other: &Rhs) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl Ord for LogLevel[src]
impl Ord for LogLevelfn cmp(&self, other: &LogLevel) -> Ordering[src]
fn cmp(&self, other: &LogLevel) -> OrderingThis method returns an Ordering between self and other. Read more
fn max(self, other: Self) -> Self1.21.0[src]
fn max(self, other: Self) -> SelfCompares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self1.21.0[src]
fn min(self, other: Self) -> SelfCompares and returns the minimum of two values. Read more
impl PartialEq<LogLevel> for LogLevelFilter[src]
impl PartialEq<LogLevel> for LogLevelFilterfn eq(&self, other: &LogLevel) -> bool[src]
fn eq(&self, other: &LogLevel) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl PartialOrd<LogLevel> for LogLevelFilter[src]
impl PartialOrd<LogLevel> for LogLevelFilterfn partial_cmp(&self, other: &LogLevel) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &LogLevel) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool1.0.0[src]
fn lt(&self, other: &Rhs) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &Rhs) -> bool1.0.0[src]
fn le(&self, other: &Rhs) -> boolThis method tests less than or equal to (for self and other) and is used by the <= operator. Read more
fn gt(&self, other: &Rhs) -> bool1.0.0[src]
fn gt(&self, other: &Rhs) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &Rhs) -> bool1.0.0[src]
fn ge(&self, other: &Rhs) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl From<Level> for LogLevel[src]
impl From<Level> for LogLevel