Trait coreplus::io::AsyncRead[][src]

pub trait AsyncRead {
    type Error;
    type IoSliceMut: IoSliceMut<'a>;
    fn poll_read(
        self: Pin<&mut Self>,
        cx: &mut Context<'_>,
        buf: &mut [u8]
    ) -> Poll<Result<usize, Self::Error>>; fn poll_read_vectored(
        self: Pin<&mut Self>,
        cx: &mut Context<'_>,
        bufs: &mut [Self::IoSliceMut]
    ) -> Poll<Result<usize, Self::Error>> { ... } }
Expand description

Read bytes asynchronously.

Associated Types

Required methods

Provided methods

Implementors