pub trait AsyncReadReady {
type Ok;
type Err: Error + Send + Sync;
// Required method
fn poll_read_ready(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
) -> Poll<Result<Self::Ok, Self::Err>>;
// Provided method
fn poll_read_ready_unpin(
&mut self,
cx: &mut Context<'_>,
) -> Poll<Result<Self::Ok, Self::Err>>
where Self: Unpin + Sized { ... }
}Expand description
Determine if the underlying API can be read from.
Required Associated Types§
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".