Enum log::LevelFilter [−][src]
#[repr(usize)]
pub enum LevelFilter {
Off,
Error,
Warn,
Info,
Debug,
Trace,
}An enum representing the available verbosity level filters of the logger.
A LevelFilter may be compared directly to a Level. Use this type
to get and set the maximum log level with max_level() and set_max_level.
Variants
A level lower than all log levels.
Corresponds to the Error log level.
Corresponds to the Warn log level.
Corresponds to the Info log level.
Corresponds to the Debug log level.
Corresponds to the Trace log level.
Implementations
impl LevelFilter[src]
impl LevelFilter[src]pub fn max() -> LevelFilter[src]
Returns the most verbose logging level filter.
pub fn to_level(&self) -> Option<Level>[src]
Converts self to the equivalent Level.
Returns None if self is LevelFilter::Off.
pub fn as_str(&self) -> &'static str[src]
Returns the string representation of the LevelFilter.
This returns the same string as the fmt::Display implementation.
Trait Implementations
impl Clone for LevelFilter[src]
impl Clone for LevelFilter[src]fn clone(&self) -> LevelFilter[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl FromStr for LevelFilter[src]
impl FromStr for LevelFilter[src]type Err = ParseLevelError
The associated error which can be returned from parsing.
fn from_str(level: &str) -> Result<LevelFilter, Self::Err>[src]
impl Hash for LevelFilter[src]
impl Hash for LevelFilter[src]impl Ord for LevelFilter[src]
impl Ord for LevelFilter[src]impl PartialEq<Level> for LevelFilter[src]
impl PartialEq<Level> for LevelFilter[src]impl PartialEq<LevelFilter> for Level[src]
impl PartialEq<LevelFilter> for Level[src]impl PartialEq<LevelFilter> for LevelFilter[src]
impl PartialEq<LevelFilter> for LevelFilter[src]impl PartialOrd<Level> for LevelFilter[src]
impl PartialOrd<Level> for LevelFilter[src]impl PartialOrd<LevelFilter> for Level[src]
impl PartialOrd<LevelFilter> for Level[src]fn partial_cmp(&self, other: &LevelFilter) -> Option<Ordering>[src]
fn lt(&self, other: &LevelFilter) -> bool[src]
fn le(&self, other: &LevelFilter) -> bool[src]
fn gt(&self, other: &LevelFilter) -> bool[src]
fn ge(&self, other: &LevelFilter) -> bool[src]
impl PartialOrd<LevelFilter> for LevelFilter[src]
impl PartialOrd<LevelFilter> for LevelFilter[src]