pub trait AsyncReadBuffer: Deref<Target = [u8]> + Unpin {
type Error;
// Required methods
fn poll_read(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
) -> Poll<Result<usize, Self::Error>>;
fn skip(&mut self, count: usize);
// Provided method
fn read(&mut self) -> Read<'_, Self> ⓘ { ... }
}Required Associated Types§
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".