Struct tokio::io::Empty [−][src]
pub struct Empty { /* fields omitted */ }Expand description
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]fn poll_read(
self: Pin<&mut Self>,
_: &mut Context<'_>,
_: &mut [u8]
) -> Poll<Result<usize>>[src]
fn poll_read(
self: Pin<&mut Self>,
_: &mut Context<'_>,
_: &mut [u8]
) -> Poll<Result<usize>>[src]Attempts to read from the AsyncRead into buf. Read more
unsafe fn prepare_uninitialized_buffer(
&self,
buf: &mut [MaybeUninit<u8>]
) -> bool[src]
unsafe fn prepare_uninitialized_buffer(
&self,
buf: &mut [MaybeUninit<u8>]
) -> bool[src]Prepares an uninitialized buffer to be safe to pass to read. Returns
true if the supplied buffer was zeroed out. Read more