pub trait AsyncWriteReady {
type Ok;
type Err: Error + Send + Sync;
// Required method
fn poll_write_ready(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
) -> Poll<Result<Self::Ok, Self::Err>>;
// Provided method
fn poll_write_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 written to.
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".