pub trait AsyncRead {
type Error: ReadError;
// Required method
fn poll_read_slice(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
buf: &mut [u8],
) -> Poll<Result<usize, Self::Error>>;
}Expand description
This trait is the asynchronous version of Read.
Required Associated Types§
Required Methods§
Implementations on Foreign Types§
Source§impl<T: AsyncRead + Unpin + ?Sized> AsyncRead for Box<T>
Available on crate feature alloc only.
impl<T: AsyncRead + Unpin + ?Sized> AsyncRead for Box<T>
Available on crate feature
alloc only.