[][src]Trait adventure::Response

pub trait Response {
    type Ok;
    type Error;
    fn try_poll(
        self: Pin<&mut 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

type Ok

The type of successful values yielded by this future

type Error

The type of failures yielded by this future

Loading content...

Required methods

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

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.

Loading content...

Implementors

impl TryFuture for Delay[src]

type Ok = ()

type Error = RetryError

impl<'a, T, E> TryFuture for Future01ResponseObj<'a, T, E>[src]

type Ok = T

type Error = E

impl<'a, T, E> TryFuture for FutureResponseObj<'a, T, E>[src]

type Ok = T

type Error = E

impl<'a, T, E> TryFuture for LocalFuture01ResponseObj<'a, T, E>[src]

type Ok = T

type Error = E

impl<'a, T, E> TryFuture for LocalFutureResponseObj<'a, T, E>[src]

type Ok = T

type Error = E

impl<F> TryFuture for Future01Response<F> where
    F: Future
[src]

type Ok = F::Item

type Error = F::Error

impl<F> TryFuture for FutureResponse<F> where
    F: TryFuture
[src]

type Ok = F::Ok

type Error = F::Error

impl<F, T, E> TryFuture for F where
    F: Future<Output = Result<T, E>> + ?Sized
[src]

type Ok = T

type Error = E

impl<R, C> TryFuture for Retrial<R, C> where
    R: RetryMethod<C> + Unpin,
    R::Response: Unpin,
    C: Clone
[src]

type Ok = <R::Response as Response>::Ok

type Error = RetryError<<<R as RetryMethod<C>>::Response as Response>::Error>

Loading content...