Struct tokio::io::Empty [−][src]
pub struct Empty { /* fields omitted */ }An async reader which is always at EOF.
This struct is generally created by calling empty. Please see
the documentation of empty() for more details.
This is an asynchronous version of std::io::empty.
Trait Implementations
impl AsyncBufRead for Empty[src]
impl AsyncBufRead for Empty[src]impl AsyncRead for Empty[src]
impl AsyncRead for Empty[src]unsafe fn prepare_uninitialized_buffer(
&self,
_buf: &mut [MaybeUninit<u8>]
) -> bool[src]
&self,
_buf: &mut [MaybeUninit<u8>]
) -> bool
fn poll_read(
self: Pin<&mut Self>,
_: &mut Context<'_>,
_: &mut [u8]
) -> Poll<Result<usize>>[src]
self: Pin<&mut Self>,
_: &mut Context<'_>,
_: &mut [u8]
) -> Poll<Result<usize>>
fn poll_read_buf<B: BufMut>(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
buf: &mut B
) -> Poll<Result<usize>> where
Self: Sized, [src]
self: Pin<&mut Self>,
cx: &mut Context<'_>,
buf: &mut B
) -> Poll<Result<usize>> where
Self: Sized,