pub struct ReplayWriter<W1: Write, W2: Write> { /* private fields */ }Implementations§
Source§impl<W1: Write, W2: Write> ReplayWriter<W1, W2>
impl<W1: Write, W2: Write> ReplayWriter<W1, W2>
Source§impl<W1: Write> ReplayWriter<W1, Stdout>
impl<W1: Write> ReplayWriter<W1, Stdout>
pub fn replay_stdout(writer1: W1) -> Self
Trait Implementations§
Source§impl<W1: Write, W2: Write> Write for ReplayWriter<W1, W2>
impl<W1: Write, W2: Write> Write for ReplayWriter<W1, W2>
Source§fn write(&mut self, buf: &[u8]) -> Result<usize>
fn write(&mut self, buf: &[u8]) -> Result<usize>
Writes a buffer into this writer, returning how many bytes were written. Read more
Source§fn flush(&mut self) -> Result<()>
fn flush(&mut self) -> Result<()>
Flushes this output stream, ensuring that all intermediately buffered
contents reach their destination. Read more
Source§fn is_write_vectored(&self) -> bool
fn is_write_vectored(&self) -> bool
🔬This is a nightly-only experimental API. (
can_vector)1.0.0 · Source§fn write_all(&mut self, buf: &[u8]) -> Result<(), Error>
fn write_all(&mut self, buf: &[u8]) -> Result<(), Error>
Attempts to write an entire buffer into this writer. Read more
Source§fn write_all_vectored(&mut self, bufs: &mut [IoSlice<'_>]) -> Result<(), Error>
fn write_all_vectored(&mut self, bufs: &mut [IoSlice<'_>]) -> Result<(), Error>
🔬This is a nightly-only experimental API. (
write_all_vectored)Attempts to write multiple buffers into this writer. Read more
Auto Trait Implementations§
impl<W1, W2> Freeze for ReplayWriter<W1, W2>
impl<W1, W2> RefUnwindSafe for ReplayWriter<W1, W2>where
W1: RefUnwindSafe,
W2: RefUnwindSafe,
impl<W1, W2> Send for ReplayWriter<W1, W2>
impl<W1, W2> Sync for ReplayWriter<W1, W2>
impl<W1, W2> Unpin for ReplayWriter<W1, W2>
impl<W1, W2> UnsafeUnpin for ReplayWriter<W1, W2>where
W1: UnsafeUnpin,
W2: UnsafeUnpin,
impl<W1, W2> UnwindSafe for ReplayWriter<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