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.