pub enum FilterLevel {
Off,
Critical,
Error,
Warning,
Info,
Debug,
Trace,
}
Expand description
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
Implementations§
Source§impl FilterLevel
impl FilterLevel
Sourcepub fn as_short_str(&self) -> &'static str
pub fn as_short_str(&self) -> &'static str
Convert to str
from LOG_LEVEL_SHORT_NAMES
Sourcepub fn from_usize(u: usize) -> Option<FilterLevel>
pub fn from_usize(u: usize) -> Option<FilterLevel>
Get a FilterLevel
from an usize
This complements as_usize
Trait Implementations§
Source§impl Clone for FilterLevel
impl Clone for FilterLevel
Source§fn clone(&self) -> FilterLevel
fn clone(&self) -> FilterLevel
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for FilterLevel
impl Debug for FilterLevel
Source§impl Display for FilterLevel
impl Display for FilterLevel
Source§impl FromStr for FilterLevel
impl FromStr for FilterLevel
Source§impl Ord for FilterLevel
impl Ord for FilterLevel
Source§fn cmp(&self, other: &FilterLevel) -> Ordering
fn cmp(&self, other: &FilterLevel) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for FilterLevel
impl PartialEq for FilterLevel
Source§impl PartialOrd for FilterLevel
impl PartialOrd for FilterLevel
impl Copy for FilterLevel
impl Eq for FilterLevel
impl StructuralPartialEq for FilterLevel
Auto Trait Implementations§
impl Freeze for FilterLevel
impl RefUnwindSafe for FilterLevel
impl Send for FilterLevel
impl Sync for FilterLevel
impl Unpin for FilterLevel
impl UnwindSafe for FilterLevel
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more