pub struct WriteFn<W> { /* private fields */ }Expand description
Writer created by write_fn.
Trait Implementations§
Source§impl<W> Write for WriteFn<W>
impl<W> Write for WriteFn<W>
Source§fn write(&mut self, buf: &[u8]) -> Result<usize>
fn write(&mut self, buf: &[u8]) -> Result<usize>
Write a buffer into this writer, returning how many bytes were written.
Source§fn flush(&mut self) -> Result<()>
fn flush(&mut self) -> Result<()>
Flush this output stream, ensuring that all intermediately buffered
contents reach their destination.
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.
Auto Trait Implementations§
impl<W> Freeze for WriteFn<W>where
W: Freeze,
impl<W> RefUnwindSafe for WriteFn<W>where
W: RefUnwindSafe,
impl<W> Send for WriteFn<W>where
W: Send,
impl<W> Sync for WriteFn<W>where
W: Sync,
impl<W> Unpin for WriteFn<W>where
W: Unpin,
impl<W> UnsafeUnpin for WriteFn<W>where
W: UnsafeUnpin,
impl<W> UnwindSafe for WriteFn<W>where
W: 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