Struct AsyncResponseFuture

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

Filtered response future from AsyncFilter services.

Trait Implementations

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

impl<P, S, Request> Future for AsyncResponseFuture<P, S, Request> where P: AsyncPredicate<Request>, S: Service<P::Request>, S::Error: Into<BoxError>,

type Output = Result<<S as Service<<P as AsyncPredicate<Request>>::Request>>::Response, Box<dyn Error + Sync + Send>>;
fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output>

impl<P, S, Request: Debug> Debug for AsyncResponseFuture<P, S, Request> where P: AsyncPredicate<Request> + Debug, S: Service<P::Request> + Debug, P::Future: Debug, S::Future: Debug,

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

Auto Trait Implementations

impl<P, S, Request> Freeze for AsyncResponseFuture<P, S, Request> where State<<P as AsyncPredicate<Request>>::Future, <S as Service<<P as AsyncPredicate<Request>>::Request>>::Future>: Freeze, S: Freeze,

impl<P, S, Request> RefUnwindSafe for AsyncResponseFuture<P, S, Request> where State<<P as AsyncPredicate<Request>>::Future, <S as Service<<P as AsyncPredicate<Request>>::Request>>::Future>: RefUnwindSafe, S: RefUnwindSafe,

impl<P, S, Request> Send for AsyncResponseFuture<P, S, Request> where State<<P as AsyncPredicate<Request>>::Future, <S as Service<<P as AsyncPredicate<Request>>::Request>>::Future>: Send, S: Send,

impl<P, S, Request> Sync for AsyncResponseFuture<P, S, Request> where State<<P as AsyncPredicate<Request>>::Future, <S as Service<<P as AsyncPredicate<Request>>::Request>>::Future>: Sync, S: Sync,

impl<P, S, Request> UnsafeUnpin for AsyncResponseFuture<P, S, Request> where State<<P as AsyncPredicate<Request>>::Future, <S as Service<<P as AsyncPredicate<Request>>::Request>>::Future>: UnsafeUnpin, S: UnsafeUnpin,

impl<P, S, Request> UnwindSafe for AsyncResponseFuture<P, S, Request> where State<<P as AsyncPredicate<Request>>::Future, <S as Service<<P as AsyncPredicate<Request>>::Request>>::Future>: UnwindSafe, S: UnwindSafe,

Blanket Implementations

impl<F> IntoFuture for AsyncResponseFuture<P, S, Request> 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 AsyncResponseFuture<P, S, Request> 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 AsyncResponseFuture<P, S, Request> where Fut: TryFuture + ?Sized,

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

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for AsyncResponseFuture<P, S, Request> where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for AsyncResponseFuture<P, S, Request> where T: ?Sized,

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

impl<T> From<T> for AsyncResponseFuture<P, S, Request>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> FutureExt for AsyncResponseFuture<P, S, Request> where T: Future + ?Sized,

impl<T> FutureExt for AsyncResponseFuture<P, S, Request> where T: Future + ?Sized,

impl<T> Instrument for AsyncResponseFuture<P, S, Request>

impl<T> WithSubscriber for AsyncResponseFuture<P, S, Request>

impl<T, U> Into<U> for AsyncResponseFuture<P, S, Request> 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 AsyncResponseFuture<P, S, Request> where U: Into<T>,

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

impl<T, U> TryInto<U> for AsyncResponseFuture<P, S, Request> where U: TryFrom<T>,

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