pub struct LogFilter(_);
Expand description
Filter for logging levels
This is a “copy” value which represents a set of enabled logging
levels. Filters can be combined using the |
and |=
bit-or
operators. A filter can be generated from a LogLevel
using
LogFilter::from
. Note that converting from a LogLevel
will also enable any related levels – see LogFilter::from
documentation.
Implementations§
Trait Implementations§
source§impl BitOrAssign<LogFilter> for LogFilter
impl BitOrAssign<LogFilter> for LogFilter
source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|=
operation. Read moresource§impl From<LogLevel> for LogFilter
impl From<LogLevel> for LogFilter
source§fn from(level: LogLevel) -> Self
fn from(level: LogLevel) -> Self
Convert a LogLevel
into a LogFilter
. Where a severity
level (LogLevel::Trace
to LogLevel::Error
) is passed,
all higher severity levels are also enabled. Where
LogLevel::Open
or LogLevel::Close
is passed, the other
is also enabled. LogLevel::Audit
only enables itself.
LogLevel::Off
gives no levels enabled.
source§impl PartialEq<LogFilter> for LogFilter
impl PartialEq<LogFilter> for LogFilter
impl Copy for LogFilter
impl Eq for LogFilter
impl StructuralEq for LogFilter
impl StructuralPartialEq for LogFilter
Auto Trait Implementations§
impl RefUnwindSafe for LogFilter
impl Send for LogFilter
impl Sync for LogFilter
impl Unpin for LogFilter
impl UnwindSafe for LogFilter
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