pub struct ArcWriter<W>(/* private fields */);
Expand description
Implements std::io::Write
for an Arc
&W: Write
.
This is an implementation detail of the MakeWriter
impl for Arc
.
Trait Implementations§
Source§impl<W> Write for ArcWriter<W>
impl<W> Write for ArcWriter<W>
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 write_all(&mut self, buf: &[u8]) -> Result<()>
fn write_all(&mut self, buf: &[u8]) -> Result<()>
Attempts to write an entire buffer into this writer. Read more
Source§fn write_fmt(&mut self, fmt: Arguments<'_>) -> Result<()>
fn write_fmt(&mut self, fmt: Arguments<'_>) -> Result<()>
Writes a formatted string into this writer, returning any error
encountered. Read more
Source§fn is_write_vectored(&self) -> bool
fn is_write_vectored(&self) -> bool
🔬This is a nightly-only experimental API. (
can_vector
#69941)Auto Trait Implementations§
impl<W> Freeze for ArcWriter<W>
impl<W> RefUnwindSafe for ArcWriter<W>where
W: RefUnwindSafe,
impl<W> Send for ArcWriter<W>
impl<W> Sync for ArcWriter<W>
impl<W> Unpin for ArcWriter<W>
impl<W> UnwindSafe for ArcWriter<W>where
W: RefUnwindSafe,
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