pub trait AsyncRead {
type Error;
// Required method
fn poll_read(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
buf: &mut [u8],
) -> Poll<Result<usize, Self::Error>>;
}
Expand description
Read bytes asynchronously.