Struct log4rs::filter::threshold::ThresholdFilter
source · pub struct ThresholdFilter { /* private fields */ }
Expand description
A filter that rejects all events at a level below a provided threshold.
Implementations§
source§impl ThresholdFilter
impl ThresholdFilter
sourcepub fn new(level: LevelFilter) -> ThresholdFilter
pub fn new(level: LevelFilter) -> ThresholdFilter
Creates a new ThresholdFilter
with the specified threshold.
Trait Implementations§
source§impl Clone for ThresholdFilter
impl Clone for ThresholdFilter
source§fn clone(&self) -> ThresholdFilter
fn clone(&self) -> ThresholdFilter
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 ThresholdFilter
impl Debug for ThresholdFilter
source§impl Filter for ThresholdFilter
impl Filter for ThresholdFilter
source§impl Hash for ThresholdFilter
impl Hash for ThresholdFilter
source§impl PartialEq for ThresholdFilter
impl PartialEq for ThresholdFilter
source§fn eq(&self, other: &ThresholdFilter) -> bool
fn eq(&self, other: &ThresholdFilter) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ThresholdFilter
impl Eq for ThresholdFilter
impl StructuralPartialEq for ThresholdFilter
Auto Trait Implementations§
impl RefUnwindSafe for ThresholdFilter
impl Send for ThresholdFilter
impl Sync for ThresholdFilter
impl Unpin for ThresholdFilter
impl UnwindSafe for ThresholdFilter
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 Q
impl<Q, K> Equivalent<K> for Q
§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 Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.