pub struct FilteredLog<T> { /* private fields */ }
Expand description
Implementations§
Trait Implementations§
Source§impl<T: Debug> Debug for FilteredLog<T>
impl<T: Debug> Debug for FilteredLog<T>
Source§impl<T: Log> Log for FilteredLog<T>
impl<T: Log> Log for FilteredLog<T>
Source§fn enabled(&self, metadata: &Metadata<'_>) -> bool
fn enabled(&self, metadata: &Metadata<'_>) -> bool
Determines if a log message with the specified metadata would be logged.
For the wrapped log, this returns true
only if both the filter and the wrapped log return true
.
Auto Trait Implementations§
impl<T> Freeze for FilteredLog<T>where
T: Freeze,
impl<T> RefUnwindSafe for FilteredLog<T>where
T: RefUnwindSafe,
impl<T> Send for FilteredLog<T>where
T: Send,
impl<T> Sync for FilteredLog<T>where
T: Sync,
impl<T> Unpin for FilteredLog<T>where
T: Unpin,
impl<T> UnwindSafe for FilteredLog<T>where
T: UnwindSafe,
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