pub struct EmptyWriter;
Trait Implementations§
Source§impl Debug for EmptyWriter
impl Debug for EmptyWriter
Source§impl ErrorType for EmptyWriter
impl ErrorType for EmptyWriter
Source§type Error = Infallible
type Error = Infallible
Error type of all the IO operations on this type.
Source§impl Write for EmptyWriter
impl Write for EmptyWriter
Source§fn write(&mut self, buf: &[u8]) -> Result<usize, Self::Error>
fn write(&mut self, buf: &[u8]) -> Result<usize, Self::Error>
Write a buffer into this writer, returning how many bytes were written. Read more
Source§fn flush(&mut self) -> Result<(), Self::Error>
fn flush(&mut self) -> Result<(), Self::Error>
Flush this output stream, blocking until all intermediately buffered contents reach their destination.
Auto Trait Implementations§
impl Freeze for EmptyWriter
impl RefUnwindSafe for EmptyWriter
impl Send for EmptyWriter
impl Sync for EmptyWriter
impl Unpin for EmptyWriter
impl UnwindSafe for EmptyWriter
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