Enum slog::FilterLevel [−][src]
pub enum FilterLevel {
Off,
Critical,
Error,
Warning,
Info,
Debug,
Trace,
}Logging filtering level
Variants
OffLog nothing
CriticalLog critical level only
ErrorLog only error level and above
WarningLog only warning level and above
InfoLog only info level and above
DebugLog only debug level and above
TraceLog everything
Methods
impl FilterLevel[src]
impl FilterLevelpub fn as_usize(&self) -> usize[src]
pub fn as_usize(&self) -> usizeConvert to usize value
Off is 0, and Trace 6
pub fn from_usize(u: usize) -> Option<FilterLevel>[src]
pub fn from_usize(u: usize) -> Option<FilterLevel>Get a FilterLevel from an usize
This complements as_usize
pub fn max() -> Self[src]
pub fn max() -> SelfMaximum logging level (log everything)
pub fn min() -> Self[src]
pub fn min() -> SelfMinimum logging level (log nothing)
Trait Implementations
impl Copy for FilterLevel[src]
impl Copy for FilterLevelimpl Clone for FilterLevel[src]
impl Clone for FilterLevelfn clone(&self) -> FilterLevel[src]
fn clone(&self) -> FilterLevelReturns 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 Debug for FilterLevel[src]
impl Debug for FilterLevelfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Eq for FilterLevel[src]
impl Eq for FilterLevelimpl PartialEq for FilterLevel[src]
impl PartialEq for FilterLevelfn eq(&self, other: &FilterLevel) -> bool[src]
fn eq(&self, other: &FilterLevel) -> 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 Ord for FilterLevel[src]
impl Ord for FilterLevelfn cmp(&self, other: &FilterLevel) -> Ordering[src]
fn cmp(&self, other: &FilterLevel) -> 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 PartialOrd for FilterLevel[src]
impl PartialOrd for FilterLevelfn partial_cmp(&self, other: &FilterLevel) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &FilterLevel) -> 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 FromStr for FilterLevel[src]
impl FromStr for FilterLevelAuto Trait Implementations
impl Send for FilterLevel
impl Send for FilterLevelimpl Sync for FilterLevel
impl Sync for FilterLevel