Struct RouteFuture

pub struct RouteFuture<E> { /* private fields */ }

Response future for Route.

Trait Implementations

impl<'__pin, E> Unpin for RouteFuture<E> where PinnedFieldsOf<__Origin<'__pin, E>>: Unpin,

impl<E> Future for RouteFuture<E>

type Output = Result<Response<Body>, E>;
fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output>

Auto Trait Implementations

impl<E> !Freeze for RouteFuture<E>

impl<E> !RefUnwindSafe for RouteFuture<E>

impl<E> !Sync for RouteFuture<E>

impl<E> !UnwindSafe for RouteFuture<E>

impl<E> Send for RouteFuture<E> where Oneshot<BoxCloneSyncService<Request<Body>, Response<Body>, E>, Request<Body>>: Send,

impl<E> UnsafeUnpin for RouteFuture<E> where Oneshot<BoxCloneSyncService<Request<Body>, Response<Body>, E>, Request<Body>>: UnsafeUnpin,

Blanket Implementations

impl<F> IntoFuture for RouteFuture<E> 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 RouteFuture<E> 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 RouteFuture<E> where Fut: TryFuture + ?Sized,

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for RouteFuture<E> where ST: ?Sized, DT: ?Sized,

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for RouteFuture<E> where ST: ?Sized, DT: ?Sized,

impl<T> Any for RouteFuture<E> where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for RouteFuture<E> where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for RouteFuture<E> where T: ?Sized,

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

impl<T> From<T> for RouteFuture<E>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> FutureExt for RouteFuture<E> where T: Future + ?Sized,

impl<T> FutureExt for RouteFuture<E> where T: Future + ?Sized,

impl<T> Instrument for RouteFuture<E>

impl<T> Read<Exclusive, BecauseExclusive> for RouteFuture<E> where T: ?Sized,

impl<T> Same for RouteFuture<E>

type Output = T;

impl<T> WithSubscriber for RouteFuture<E>

impl<T, U> Into<U> for RouteFuture<E> 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 RouteFuture<E> where U: Into<T>,

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

impl<T, U> TryInto<U> for RouteFuture<E> where U: TryFrom<T>,

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

impl<V, T> VZip<V> for RouteFuture<E> where V: MultiLane<T>,

fn vzip(self) -> V