pub struct TeeWriter<W1, W2> {
pub w1: W1,
pub w2: W2,
}Expand description
A BufWriter that writes the bytes to two writers W1 and W2.
Fields§
§w1: W1§w2: W2Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<W1, W2> Freeze for TeeWriter<W1, W2>
impl<W1, W2> RefUnwindSafe for TeeWriter<W1, W2>where
W1: RefUnwindSafe,
W2: RefUnwindSafe,
impl<W1, W2> Send for TeeWriter<W1, W2>
impl<W1, W2> Sync for TeeWriter<W1, W2>
impl<W1, W2> Unpin for TeeWriter<W1, W2>
impl<W1, W2> UnwindSafe for TeeWriter<W1, W2>where
W1: UnwindSafe,
W2: 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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more