Struct LayeredFuture
pub struct LayeredFuture<S>
where
S: Service<Request>, { /* private fields */ }
The response future for Layered.
Trait Implementations
impl<'__pin, S> Unpin for LayeredFuture<S>
where
PinnedFieldsOf<__Origin<'__pin, S>>: Unpin,
S: Service<Request>,
impl<S> Future for LayeredFuture<S>
where
S: Service<Request>,
type Output = Response<Body>;fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output>
Auto Trait Implementations
impl<S> !Freeze for LayeredFuture<S>
impl<S> !RefUnwindSafe for LayeredFuture<S>
impl<S> !Sync for LayeredFuture<S>
impl<S> !UnwindSafe for LayeredFuture<S>
impl<S> Send for LayeredFuture<S>
where
Map<Oneshot<S, Request<Body>>, fn(Result<<S as Service<Request<Body>>>::Response, <S as Service<Request<Body>>>::Error>) -> Response<Body>>: Send,
impl<S> UnsafeUnpin for LayeredFuture<S>
where
Map<Oneshot<S, Request<Body>>, fn(Result<<S as Service<Request<Body>>>::Response, <S as Service<Request<Body>>>::Error>) -> Response<Body>>: UnsafeUnpin,
Blanket Implementations
impl<F> IntoFuture for LayeredFuture<S>
where
F: Future,
type Output = <F as Future>::Output;type IntoFuture = F;fn into_future(self) -> <F as IntoFuture>::IntoFuture
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for LayeredFuture<S>
where
ST: ?Sized,
DT: ?Sized,
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for LayeredFuture<S>
where
ST: ?Sized,
DT: ?Sized,
impl<T> Any for LayeredFuture<S>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for LayeredFuture<S>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for LayeredFuture<S>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for LayeredFuture<S>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> FutureExt for LayeredFuture<S>
where
T: Future + ?Sized,
impl<T> FutureExt for LayeredFuture<S>
where
T: Future + ?Sized,
impl<T> Instrument for LayeredFuture<S>
impl<T> Read<Exclusive, BecauseExclusive> for LayeredFuture<S>
where
T: ?Sized,
impl<T> Same for LayeredFuture<S>
type Output = T;
impl<T> WithSubscriber for LayeredFuture<S>
impl<T, U> Into<U> for LayeredFuture<S>
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for LayeredFuture<S>
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for LayeredFuture<S>
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 LayeredFuture<S>
where
V: MultiLane<T>,
fn vzip(self) -> V