pub struct Extender<C, I> {
pub container: C,
/* private fields */
}
Expand description
Returned from the extender function.
Fields§
§container: C
Trait Implementations§
Source§impl<C, I> Logger<I> for Extender<C, I>where
C: Extend<I>,
impl<C, I> Logger<I> for Extender<C, I>where
C: Extend<I>,
type Error = Infallible
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<C, I> Freeze for Extender<C, I>where
C: Freeze,
impl<C, I> RefUnwindSafe for Extender<C, I>where
C: RefUnwindSafe,
impl<C, I> Send for Extender<C, I>where
C: Send,
impl<C, I> Sync for Extender<C, I>where
C: Sync,
impl<C, I> Unpin for Extender<C, I>where
C: Unpin,
impl<C, I> UnwindSafe for Extender<C, I>where
C: 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