Struct ResponseFuture

pub struct ResponseFuture<S, B, P>
where
    S: Service<Request<B>>, { /* private fields */ }

Response future for FollowRedirect.

Trait Implementations

impl<'__pin, S, B, P> Unpin for ResponseFuture<S, B, P> where PinnedFieldsOf<__Origin<'__pin, S, B, P>>: Unpin, S: Service<Request<B>>,

impl<S, B: Debug, P: Debug> Debug for ResponseFuture<S, B, P> where S: Service<Request<B>> + Debug, S::Future: Debug,

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl<S, ReqBody, ResBody, P> Future for ResponseFuture<S, ReqBody, P> where S: Service<Request<ReqBody>, Response = Response<ResBody>> + Clone, ReqBody: Body + Default, P: Policy<ReqBody, S::Error>,

type Output = Result<Response<ResBody>, <S as Service<Request<ReqBody>>>::Error>;
fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output>

Auto Trait Implementations

impl<S, B, P> !Freeze for ResponseFuture<S, B, P>

impl<S, B, P> !RefUnwindSafe for ResponseFuture<S, B, P>

impl<S, B, P> !UnwindSafe for ResponseFuture<S, B, P>

impl<S, B, P> Send for ResponseFuture<S, B, P> where Either<<S as Service<Request<B>>>::Future, Oneshot<S, Request<B>>>: Send, S: Send, P: Send, BodyRepr<B>: Send,

impl<S, B, P> Sync for ResponseFuture<S, B, P> where Either<<S as Service<Request<B>>>::Future, Oneshot<S, Request<B>>>: Sync, S: Sync, P: Sync, BodyRepr<B>: Sync,

impl<S, B, P> UnsafeUnpin for ResponseFuture<S, B, P> where Either<<S as Service<Request<B>>>::Future, Oneshot<S, Request<B>>>: UnsafeUnpin, S: UnsafeUnpin, P: UnsafeUnpin, BodyRepr<B>: UnsafeUnpin,

Blanket Implementations

impl<F> IntoFuture for ResponseFuture<S, B, P> where F: Future,

impl<F, T, E> TryFuture for ResponseFuture<S, B, P> where F: Future<Output = Result<T, E>> + ?Sized,

impl<Fut> TryFutureExt for ResponseFuture<S, B, P> where Fut: TryFuture + ?Sized,

impl<T> Any for ResponseFuture<S, B, P> where T: 'static + ?Sized,

impl<T> Borrow<T> for ResponseFuture<S, B, P> where T: ?Sized,

impl<T> BorrowMut<T> for ResponseFuture<S, B, P> where T: ?Sized,

impl<T> From<T> for ResponseFuture<S, B, P>

impl<T> FutureExt for ResponseFuture<S, B, P> where T: Future + ?Sized,

impl<T> FutureExt for ResponseFuture<S, B, P> where T: Future + ?Sized,

impl<T> Instrument for ResponseFuture<S, B, P>

impl<T> PolicyExt for ResponseFuture<S, B, P> where T: ?Sized,

impl<T> WithSubscriber for ResponseFuture<S, B, P>

impl<T, U> Into<U> for ResponseFuture<S, B, P> where U: From<T>,

impl<T, U> TryFrom<U> for ResponseFuture<S, B, P> where U: Into<T>,

impl<T, U> TryInto<U> for ResponseFuture<S, B, P> where U: TryFrom<T>,