[][src]Trait async_ready::AsyncWriteReady

pub trait AsyncWriteReady {
type Ok;
type Err: Error + Send + Sync;
    fn poll_write_ready(
        self: Pin<&mut Self>,
        cx: &mut Context
    ) -> Poll<Result<Self::Ok, Self::Err>>; fn poll_write_ready_unpin(
        &mut self,
        cx: &mut Context
    ) -> Poll<Result<Self::Ok, Self::Err>>
    where
        Self: Unpin + Sized
, { ... } }

Determine if the underlying API can be written to.

Associated Types

type Ok

The type of successful values yielded by this trait.

type Err: Error + Send + Sync

The type of failures yielded by this trait.

Loading content...

Required methods

fn poll_write_ready(
    self: Pin<&mut Self>,
    cx: &mut Context
) -> Poll<Result<Self::Ok, Self::Err>>

Check if the underlying API can be written to.

Loading content...

Provided methods

fn poll_write_ready_unpin(
    &mut self,
    cx: &mut Context
) -> Poll<Result<Self::Ok, Self::Err>> where
    Self: Unpin + Sized

A convenience for calling AsyncWriteReady::poll_write_ready on Unpin types.

Loading content...

Implementors

Loading content...