pub struct LevelFilter(/* private fields */);
Expand description
A filter comparable to trace verbosity Level
.
If a Level
is considered less than a LevelFilter
, it should be
considered disabled; if greater than or equal to the LevelFilter
, that
level is enabled.
Note that this is essentially identical to the Level
type, but with the
addition of an OFF
level that completely disables all trace
instrumentation.
Implementations§
Source§impl LevelFilter
impl LevelFilter
Sourcepub const OFF: LevelFilter
pub const OFF: LevelFilter
The “off” level.
Designates that trace instrumentation should be completely disabled.
Sourcepub const ERROR: LevelFilter
pub const ERROR: LevelFilter
The “error” level.
Designates very serious errors.
Sourcepub const WARN: LevelFilter
pub const WARN: LevelFilter
The “warn” level.
Designates hazardous situations.
Sourcepub const INFO: LevelFilter
pub const INFO: LevelFilter
The “info” level.
Designates useful information.
Sourcepub const DEBUG: LevelFilter
pub const DEBUG: LevelFilter
The “debug” level.
Designates lower priority information.
Sourcepub const TRACE: LevelFilter
pub const TRACE: LevelFilter
The “trace” level.
Designates very low priority, often extremely verbose, information.
Trait Implementations§
Source§impl Clone for LevelFilter
impl Clone for LevelFilter
Source§fn clone(&self) -> LevelFilter
fn clone(&self) -> LevelFilter
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 LevelFilter
impl Debug for LevelFilter
Source§impl Ord for LevelFilter
impl Ord for LevelFilter
Source§fn cmp(&self, other: &LevelFilter) -> Ordering
fn cmp(&self, other: &LevelFilter) -> 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<LevelFilter> for Level
impl PartialEq<LevelFilter> for Level
Source§impl PartialEq for LevelFilter
impl PartialEq for LevelFilter
Source§impl PartialOrd<LevelFilter> for Level
impl PartialOrd<LevelFilter> for Level
Source§impl PartialOrd for LevelFilter
impl PartialOrd for LevelFilter
impl Eq for LevelFilter
impl StructuralPartialEq for LevelFilter
Auto Trait Implementations§
impl Freeze for LevelFilter
impl RefUnwindSafe for LevelFilter
impl Send for LevelFilter
impl Sync for LevelFilter
impl Unpin for LevelFilter
impl UnwindSafe for LevelFilter
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