[][src]Trait async_ready::AsyncReadReady

pub trait AsyncReadReady {
    type Ok;
    type Err: Error + Send + Sync;
    fn poll_read_ready(
        self: Pin<&mut Self>,
        cx: &mut Context
    ) -> Poll<Result<Self::Ok, Self::Err>>; }

Determine if the underlying API can be read from.

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_read_ready(
    self: Pin<&mut Self>,
    cx: &mut Context
) -> Poll<Result<Self::Ok, Self::Err>>

Check if the underlying API can be read from.

Loading content...

Implementors

Loading content...