pub struct Safe<L, E> { /* private fields */ }Expand description
Returned from the Logger::safe method.
Trait Implementations§
Source§impl<I, L, E> Logger<I> for Safe<L, E>where
L: Logger<I>,
impl<I, L, E> Logger<I> for Safe<L, E>where
L: Logger<I>,
type Error = E
fn log(&mut self, item: I) -> Result<(), Self::Error>
Source§fn chain<L>(self, other: L) -> Chain<Self, L>where
Self: Sized,
fn chain<L>(self, other: L) -> Chain<Self, L>where
Self: Sized,
Combine two loggers, creating a new logger
that logs each input to both loggers.
Source§fn filter<F>(self, f: F) -> Filter<Self, F>
fn filter<F>(self, f: F) -> Filter<Self, F>
Apply a function to each input and
pass it to the logger
only if the function returns true for it.
Auto Trait Implementations§
impl<L, E> Freeze for Safe<L, E>where
L: Freeze,
impl<L, E> RefUnwindSafe for Safe<L, E>where
L: RefUnwindSafe,
impl<L, E> Send for Safe<L, E>where
L: Send,
impl<L, E> Sync for Safe<L, E>where
L: Sync,
impl<L, E> Unpin for Safe<L, E>where
L: Unpin,
impl<L, E> UnwindSafe for Safe<L, E>where
L: 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