pub struct Tee<A, B>(pub A, pub B);Expand description
Fan-out combinator: ingests every batch into both sinks.
Both branches are always attempted; errors are reported per branch via
TeeError.
Tuple Fields§
§0: A§1: BTrait Implementations§
Source§impl<R, A, B> Sink<R> for Tee<A, B>
impl<R, A, B> Sink<R> for Tee<A, B>
Source§type Error = TeeError<<A as Sink<R>>::Error, <B as Sink<R>>::Error>
type Error = TeeError<<A as Sink<R>>::Error, <B as Sink<R>>::Error>
Concrete error type (a
thiserror enum, not a boxed error).Auto Trait Implementations§
impl<A, B> Freeze for Tee<A, B>
impl<A, B> RefUnwindSafe for Tee<A, B>where
A: RefUnwindSafe,
B: RefUnwindSafe,
impl<A, B> Send for Tee<A, B>
impl<A, B> Sync for Tee<A, B>
impl<A, B> Unpin for Tee<A, B>
impl<A, B> UnsafeUnpin for Tee<A, B>where
A: UnsafeUnpin,
B: UnsafeUnpin,
impl<A, B> UnwindSafe for Tee<A, B>where
A: UnwindSafe,
B: UnwindSafe,
Blanket Implementations§
impl<T> Allocation for T
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