pub struct IoWriter<W> { /* private fields */ }Expand description
A wrapper type for writing to std::io::Write types.
Ignores all errors afther the first one.
The status can be retrieved using IoWriter::into_parts.
Implementations§
Source§impl<W> IoWriter<W>
impl<W> IoWriter<W>
Sourcepub fn into_parts(self) -> (W, Result<()>)
pub fn into_parts(self) -> (W, Result<()>)
Disassembles the IoWriter<W>, returning the underlying writer, and the status.
Trait Implementations§
Auto Trait Implementations§
impl<W> Freeze for IoWriter<W>where
W: Freeze,
impl<W> !RefUnwindSafe for IoWriter<W>
impl<W> Send for IoWriter<W>where
W: Send,
impl<W> Sync for IoWriter<W>where
W: Sync,
impl<W> Unpin for IoWriter<W>where
W: Unpin,
impl<W> !UnwindSafe for IoWriter<W>
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