pub struct Empty;Expand description
Trait Implementations§
Source§impl Read for Empty
impl Read for Empty
Source§async fn read(&mut self, _buf: &mut [u8]) -> Result<usize>
async fn read(&mut self, _buf: &mut [u8]) -> Result<usize>
Reads data from the stream into the provided buffer.
fn read_vectored( &mut self, bufs: &mut [IoSliceMut<'_>], ) -> impl Future<Output = Result<usize>>
fn is_read_vectored(&self) -> bool
fn read_to_end( &mut self, buf: &mut Vec<u8>, ) -> impl Future<Output = Result<usize>>
fn read_to_string(&mut self) -> impl Future<Output = Result<String>>
fn read_exact(&mut self, buf: &mut [u8]) -> impl Future<Output = Result<()>>
Source§impl Seek for Empty
impl Seek for Empty
Source§async fn seek(&mut self, _pos: SeekFrom) -> Result<u64>
async fn seek(&mut self, _pos: SeekFrom) -> Result<u64>
Moves the cursor to a new position within the stream.
Source§fn rewind(&mut self) -> impl Future<Output = Result<u64>>
fn rewind(&mut self) -> impl Future<Output = Result<u64>>
Rewind to the beginning of a stream. Read more
Source§impl Write for Empty
impl Write for Empty
Source§async fn write(&mut self, buf: &[u8]) -> Result<usize>
async fn write(&mut self, buf: &[u8]) -> Result<usize>
Writes a buffer into this writer, returning how many bytes were successfully written.
Source§async fn flush(&mut self) -> Result<()>
async fn flush(&mut self) -> Result<()>
Flushes the output streamer, ensuring that all intermediately buffered contents reach their destination.
impl Copy for Empty
Auto Trait Implementations§
impl Freeze for Empty
impl RefUnwindSafe for Empty
impl Send for Empty
impl Sync for Empty
impl Unpin for Empty
impl UnwindSafe for Empty
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