[][src]Trait futures::future::TryFuture

pub trait TryFuture {
    type Ok;
    type Error;
    fn try_poll(
        self: PinMut<Self>,
        cx: &mut Context
    ) -> Poll<Result<Self::Ok, Self::Error>>; }

A convenience for futures that return Result values that includes a variety of adapters tailored to such futures.

Associated Types

The type of successful values yielded by this future

The type of failures yielded by this future

Required Methods

Poll this TryFuture as if it were a Future.

This method is a stopgap for a compiler limitation that prevents us from directly inheriting from the Future trait; in the future it won't be needed.

Implementors