pub struct DefaultFilter;Expand description
This is default implementation of RecordFilter trait which check method always return true.
It should be constructed using Default::default method.
Trait Implementations§
Source§impl Clone for DefaultFilter
impl Clone for DefaultFilter
Source§fn clone(&self) -> DefaultFilter
fn clone(&self) -> DefaultFilter
Returns a duplicate 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 DefaultFilter
impl Debug for DefaultFilter
Source§impl Default for DefaultFilter
impl Default for DefaultFilter
Source§fn default() -> DefaultFilter
fn default() -> DefaultFilter
Returns the “default value” for a type. Read more
Source§impl RecordFilter for DefaultFilter
impl RecordFilter for DefaultFilter
Source§fn check(&self, _record: &Record) -> bool
fn check(&self, _record: &Record) -> bool
This method returns
bool value depending on if received log record (Record) should be processed
by logging part inside LoggedStream.Source§fn fmt_debug(&self, f: &mut Formatter<'_>) -> Result
fn fmt_debug(&self, f: &mut Formatter<'_>) -> Result
This method provides
fmt::Debug representation of the filter. It is used by composite filters
(AllFilter and AnyFilter) to produce detailed debug output of their underlying filters.
The default implementation outputs the type name as "UnknownFilter".
Implementors are encouraged to override this method to provide meaningful debug information.impl Copy for DefaultFilter
Auto Trait Implementations§
impl Freeze for DefaultFilter
impl RefUnwindSafe for DefaultFilter
impl Send for DefaultFilter
impl Sync for DefaultFilter
impl Unpin for DefaultFilter
impl UnsafeUnpin for DefaultFilter
impl UnwindSafe for DefaultFilter
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