[−][src]Trait adventure::prelude::Response
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
Required methods
fn try_poll(
self: Pin<&mut Self>,
cx: &mut Context
) -> Poll<Result<Self::Ok, Self::Error>>
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.
Implementors
impl TryFuture for Delay
[src]
type Ok = ()
type Error = RetryError
fn try_poll(
self: Pin<&mut Self>,
ctx: &mut Context
) -> Poll<Result<Self::Ok, Self::Error>>
[src]
self: Pin<&mut Self>,
ctx: &mut Context
) -> Poll<Result<Self::Ok, Self::Error>>
impl<'a, T, E> TryFuture for Future01ResponseObj<'a, T, E>
[src]
type Ok = T
type Error = E
fn try_poll(
self: Pin<&mut Self>,
ctx: &mut Context
) -> Poll<Result<Self::Ok, Self::Error>>
[src]
self: Pin<&mut Self>,
ctx: &mut Context
) -> Poll<Result<Self::Ok, Self::Error>>
impl<'a, T, E> TryFuture for FutureResponseObj<'a, T, E>
[src]
type Ok = T
type Error = E
fn try_poll(
self: Pin<&mut Self>,
ctx: &mut Context
) -> Poll<Result<Self::Ok, Self::Error>>
[src]
self: Pin<&mut Self>,
ctx: &mut Context
) -> Poll<Result<Self::Ok, Self::Error>>
impl<'a, T, E> TryFuture for LocalFuture01ResponseObj<'a, T, E>
[src]
type Ok = T
type Error = E
fn try_poll(
self: Pin<&mut Self>,
ctx: &mut Context
) -> Poll<Result<Self::Ok, Self::Error>>
[src]
self: Pin<&mut Self>,
ctx: &mut Context
) -> Poll<Result<Self::Ok, Self::Error>>
impl<'a, T, E> TryFuture for LocalFutureResponseObj<'a, T, E>
[src]
type Ok = T
type Error = E
fn try_poll(
self: Pin<&mut Self>,
ctx: &mut Context
) -> Poll<Result<Self::Ok, Self::Error>>
[src]
self: Pin<&mut Self>,
ctx: &mut Context
) -> Poll<Result<Self::Ok, Self::Error>>
impl<F> TryFuture for Future01Response<F> where
F: Future,
[src]
F: Future,
type Ok = F::Item
type Error = F::Error
fn try_poll(
self: Pin<&mut Self>,
ctx: &mut Context
) -> Poll<Result<Self::Ok, Self::Error>>
[src]
self: Pin<&mut Self>,
ctx: &mut Context
) -> Poll<Result<Self::Ok, Self::Error>>
impl<F> TryFuture for FutureResponse<F> where
F: TryFuture,
[src]
F: TryFuture,
type Ok = F::Ok
type Error = F::Error
fn try_poll(
self: Pin<&mut Self>,
ctx: &mut Context
) -> Poll<Result<Self::Ok, Self::Error>>
[src]
self: Pin<&mut Self>,
ctx: &mut Context
) -> Poll<Result<Self::Ok, Self::Error>>
impl<F, T, E> TryFuture for F where
F: Future<Output = Result<T, E>> + ?Sized,
[src]
F: Future<Output = Result<T, E>> + ?Sized,
type Ok = T
type Error = E
fn try_poll(self: Pin<&mut F>, cx: &mut Context) -> Poll<<F as Future>::Output>
[src]
impl<R, C> TryFuture for Retrial<R, C> where
R: RetryMethod<C> + Unpin,
R::Response: Unpin,
C: Clone,
[src]
R: RetryMethod<C> + Unpin,
R::Response: Unpin,
C: Clone,