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,

type Output = <F as Future>::Output;
type IntoFuture = F;
fn into_future(self) -> <F as IntoFuture>::IntoFuture

impl<F, T, E> TryFuture for ResponseFuture<S, B, P> where 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>

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

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

fn type_id(&self) -> TypeId

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

fn borrow(&self) -> &T

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

fn borrow_mut(&mut self) -> &mut T

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

fn from(t: T) -> T

Returns the argument unchanged.

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,

fn and<P, B, E>(self, other: P) -> And<T, P>
where
    T: Sized + Policy<B, E>,
    P: Policy<B, E>,
fn or<P, B, E>(self, other: P) -> Or<T, P>
where
    T: Sized + Policy<B, E>,
    P: Policy<B, E>,

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

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

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

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

type Error = Infallible;
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>