[][src]Trait async_stdio::ext::PollExt

pub trait PollExt<T> {
    fn into_io_result(self) -> Result<T>;
}

Extension trait for converting a Poll<io::Result<T>> into an io::Result<T>

Required methods

fn into_io_result(self) -> Result<T>

Perform the conversion

A Poll::Pending will be turned into an IO error with the kind io::ErrorKind::WouldBlock. Poll::Ready will simply be unwrapped.

Loading content...

Implementations on Foreign Types

impl<T> PollExt<T> for Poll<Result<T>>[src]

Loading content...

Implementors

Loading content...