[−][src]Trait adventure::Response
Trait to represent types of the response, and the task to receive it.
Associated Types
type Ok
The type of successful values of this response.
type Error
The type of failures of this response.
Required methods
Loading content...Provided methods
ⓘImportant traits for IntoFuture<T>fn into_future(self) -> IntoFuture<Self> where
Self: Sized,
ⓘImportant traits for IntoFuture<T>
Self: Sized,
Wrap this response into a type that can work with futures.
It is compatible with both types of futures 0.1 Future
and
std::future::Future
.
Implementations on Foreign Types
impl<P> Response for Pin<P> where
P: DerefMut + Unpin,
<P as Deref>::Target: Response,
[src]
P: DerefMut + Unpin,
<P as Deref>::Target: Response,
type Ok = <<P as Deref>::Target as Response>::Ok
type Error = <<P as Deref>::Target as Response>::Error
fn poll(self: Pin<&mut Self>, w: &Waker) -> Poll<Result<Self::Ok, Self::Error>>
[src]
ⓘImportant traits for IntoFuture<T>fn into_future(self) -> IntoFuture<Self> where
Self: Sized,
[src]
ⓘImportant traits for IntoFuture<T>
Self: Sized,
impl<'a, R: ?Sized> Response for &'a mut R where
R: Response + Unpin,
[src]
R: Response + Unpin,
type Ok = R::Ok
type Error = R::Error
fn poll(self: Pin<&mut Self>, w: &Waker) -> Poll<Result<Self::Ok, Self::Error>>
[src]
ⓘImportant traits for IntoFuture<T>fn into_future(self) -> IntoFuture<Self> where
Self: Sized,
[src]
ⓘImportant traits for IntoFuture<T>
Self: Sized,
impl<R: ?Sized> Response for Box<R> where
R: Response + Unpin,
[src]
R: Response + Unpin,
type Ok = R::Ok
type Error = R::Error
fn poll(self: Pin<&mut Self>, w: &Waker) -> Poll<Result<Self::Ok, Self::Error>>
[src]
ⓘImportant traits for IntoFuture<T>fn into_future(self) -> IntoFuture<Self> where
Self: Sized,
[src]
ⓘImportant traits for IntoFuture<T>
Self: Sized,
Implementors
impl Response for Delay
[src]
type Ok = ()
type Error = RetryError
fn poll(self: Pin<&mut Self>, w: &Waker) -> Poll<Result<Self::Ok, Self::Error>>
[src]
ⓘImportant traits for IntoFuture<T>fn into_future(self) -> IntoFuture<Self> where
Self: Sized,
[src]
ⓘImportant traits for IntoFuture<T>
Self: Sized,
impl<'a, T, E> Response for Future01ResponseObj<'a, T, E>
[src]
type Ok = T
type Error = E
fn poll(self: Pin<&mut Self>, w: &Waker) -> Poll<Result<Self::Ok, Self::Error>>
[src]
ⓘImportant traits for IntoFuture<T>fn into_future(self) -> IntoFuture<Self> where
Self: Sized,
[src]
ⓘImportant traits for IntoFuture<T>
Self: Sized,
impl<'a, T, E> Response for FutureResponseObj<'a, T, E>
[src]
type Ok = T
type Error = E
fn poll(self: Pin<&mut Self>, w: &Waker) -> Poll<Result<Self::Ok, Self::Error>>
[src]
ⓘImportant traits for IntoFuture<T>fn into_future(self) -> IntoFuture<Self> where
Self: Sized,
[src]
ⓘImportant traits for IntoFuture<T>
Self: Sized,
impl<'a, T, E> Response for LocalFuture01ResponseObj<'a, T, E>
[src]
type Ok = T
type Error = E
fn poll(self: Pin<&mut Self>, w: &Waker) -> Poll<Result<Self::Ok, Self::Error>>
[src]
ⓘImportant traits for IntoFuture<T>fn into_future(self) -> IntoFuture<Self> where
Self: Sized,
[src]
ⓘImportant traits for IntoFuture<T>
Self: Sized,
impl<'a, T, E> Response for LocalFutureResponseObj<'a, T, E>
[src]
type Ok = T
type Error = E
fn poll(self: Pin<&mut Self>, w: &Waker) -> Poll<Result<Self::Ok, Self::Error>>
[src]
ⓘImportant traits for IntoFuture<T>fn into_future(self) -> IntoFuture<Self> where
Self: Sized,
[src]
ⓘImportant traits for IntoFuture<T>
Self: Sized,
impl<F> Response for Future01Response<F> where
F: Future,
[src]
F: Future,
type Ok = F::Item
type Error = F::Error
fn poll(self: Pin<&mut Self>, w: &Waker) -> Poll<Result<Self::Ok, Self::Error>>
[src]
ⓘImportant traits for IntoFuture<T>fn into_future(self) -> IntoFuture<Self> where
Self: Sized,
[src]
ⓘImportant traits for IntoFuture<T>
Self: Sized,
impl<F> Response for FutureResponse<F> where
F: TryFuture,
[src]
F: TryFuture,
type Ok = F::Ok
type Error = F::Error
fn poll(self: Pin<&mut Self>, w: &Waker) -> Poll<Result<Self::Ok, Self::Error>>
[src]
ⓘImportant traits for IntoFuture<T>fn into_future(self) -> IntoFuture<Self> where
Self: Sized,
[src]
ⓘImportant traits for IntoFuture<T>
Self: Sized,
impl<R, C> Response for Retrial<R, C> where
R: RetryMethod<C> + Unpin,
R::Response: Unpin,
C: Clone,
[src]
R: RetryMethod<C> + Unpin,
R::Response: Unpin,
C: Clone,
type Ok = <R::Response as Response>::Ok
type Error = RetryError<<<R as RetryMethod<C>>::Response as Response>::Error>
fn poll(
self: Pin<&mut Self>,
waker: &Waker
) -> Poll<Result<Self::Ok, Self::Error>>
[src]
self: Pin<&mut Self>,
waker: &Waker
) -> Poll<Result<Self::Ok, Self::Error>>
ⓘImportant traits for IntoFuture<T>fn into_future(self) -> IntoFuture<Self> where
Self: Sized,
[src]
ⓘImportant traits for IntoFuture<T>
Self: Sized,