Enum slog::FilterLevel [−][src]
pub enum FilterLevel { Off, Critical, Error, Warning, Info, Debug, Trace, }
Logging filtering level
Variants
Off
Log nothing
Critical
Log critical level only
Error
Log only error level and above
Warning
Log only warning level and above
Info
Log only info level and above
Debug
Log only debug level and above
Trace
Log everything
Methods
impl FilterLevel
[src]
impl FilterLevel
pub fn as_usize(&self) -> usize
[src]
pub fn as_usize(&self) -> usize
Convert 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() -> Self
Maximum logging level (log everything)
pub fn min() -> Self
[src]
pub fn min() -> Self
Minimum logging level (log nothing)
Trait Implementations
impl Copy for FilterLevel
[src]
impl Copy for FilterLevel
impl Clone for FilterLevel
[src]
impl Clone for FilterLevel
fn clone(&self) -> FilterLevel
[src]
fn clone(&self) -> FilterLevel
Returns 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 FilterLevel
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Eq for FilterLevel
[src]
impl Eq for FilterLevel
impl PartialEq for FilterLevel
[src]
impl PartialEq for FilterLevel
fn eq(&self, other: &FilterLevel) -> bool
[src]
fn eq(&self, other: &FilterLevel) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl Ord for FilterLevel
[src]
impl Ord for FilterLevel
fn cmp(&self, other: &FilterLevel) -> Ordering
[src]
fn cmp(&self, other: &FilterLevel) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
impl PartialOrd for FilterLevel
[src]
impl PartialOrd for FilterLevel
fn 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) -> bool
1.0.0[src]
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
fn gt(&self, other: &Rhs) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
fn ge(&self, other: &Rhs) -> bool
This 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 FilterLevel
Auto Trait Implementations
impl Send for FilterLevel
impl Send for FilterLevel
impl Sync for FilterLevel
impl Sync for FilterLevel