Struct flexi_logger::ModuleFilter
source · pub struct ModuleFilter {
pub module_name: Option<String>,
pub level_filter: LevelFilter,
}
Expand description
Defines which loglevel filter to use for the specified module.
A ModuleFilter
, whose module_name
is not set, describes the default loglevel filter.
Fields§
§module_name: Option<String>
The module name.
level_filter: LevelFilter
The level filter.
Trait Implementations§
source§impl Clone for ModuleFilter
impl Clone for ModuleFilter
source§fn clone(&self) -> ModuleFilter
fn clone(&self) -> ModuleFilter
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 ModuleFilter
impl Debug for ModuleFilter
source§impl PartialEq<ModuleFilter> for ModuleFilter
impl PartialEq<ModuleFilter> for ModuleFilter
source§fn eq(&self, other: &ModuleFilter) -> bool
fn eq(&self, other: &ModuleFilter) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ModuleFilter
impl StructuralEq for ModuleFilter
impl StructuralPartialEq for ModuleFilter
Auto Trait Implementations§
impl RefUnwindSafe for ModuleFilter
impl Send for ModuleFilter
impl Sync for ModuleFilter
impl Unpin for ModuleFilter
impl UnwindSafe for ModuleFilter
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.