[][src]Trait async_stdio::ext::ResultExt

pub trait ResultExt<T> {
    fn into_poll(self) -> Poll<Result<T>>;
}

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

Required methods

fn into_poll(self) -> Poll<Result<T>>

Perform the conversion

An IO error with the kind io::ErrorKind::WouldBlock will get converted to Poll::Pending. All other results will become Poll::Ready

Loading content...

Implementations on Foreign Types

impl<T> ResultExt<T> for Result<T>[src]

Loading content...

Implementors

Loading content...