Struct MapRequest

struct MapRequest<F, S, I, T> { ... }

A middleware created from an async function that transforms a request.

Created with map_request. See that function for more details.

Implementations

impl<F, Fut, S, I, B, T1> Service for MapRequest<F, S, I, (T1)>

fn poll_ready(self: &mut Self, cx: &mut Context<'_>) -> Poll<Result<(), <Self as >::Error>>
fn call(self: &mut Self, req: Request<B>) -> <Self as >::Future

impl<F, Fut, S, I, B, T1, T2> Service for MapRequest<F, S, I, (T1, T2)>

fn poll_ready(self: &mut Self, cx: &mut Context<'_>) -> Poll<Result<(), <Self as >::Error>>
fn call(self: &mut Self, req: Request<B>) -> <Self as >::Future

impl<F, Fut, S, I, B, T1, T2, T3> Service for MapRequest<F, S, I, (T1, T2, T3)>

fn poll_ready(self: &mut Self, cx: &mut Context<'_>) -> Poll<Result<(), <Self as >::Error>>
fn call(self: &mut Self, req: Request<B>) -> <Self as >::Future

impl<F, Fut, S, I, B, T1, T2, T3, T4> Service for MapRequest<F, S, I, (T1, T2, T3, T4)>

fn poll_ready(self: &mut Self, cx: &mut Context<'_>) -> Poll<Result<(), <Self as >::Error>>
fn call(self: &mut Self, req: Request<B>) -> <Self as >::Future

impl<F, Fut, S, I, B, T1, T2, T3, T4, T5> Service for MapRequest<F, S, I, (T1, T2, T3, T4, T5)>

fn poll_ready(self: &mut Self, cx: &mut Context<'_>) -> Poll<Result<(), <Self as >::Error>>
fn call(self: &mut Self, req: Request<B>) -> <Self as >::Future

impl<F, Fut, S, I, B, T1, T2, T3, T4, T5, T6> Service for MapRequest<F, S, I, (T1, T2, T3, T4, T5, T6)>

fn poll_ready(self: &mut Self, cx: &mut Context<'_>) -> Poll<Result<(), <Self as >::Error>>
fn call(self: &mut Self, req: Request<B>) -> <Self as >::Future

impl<F, Fut, S, I, B, T1, T2, T3, T4, T5, T6, T7> Service for MapRequest<F, S, I, (T1, T2, T3, T4, T5, T6, T7)>

fn poll_ready(self: &mut Self, cx: &mut Context<'_>) -> Poll<Result<(), <Self as >::Error>>
fn call(self: &mut Self, req: Request<B>) -> <Self as >::Future

impl<F, Fut, S, I, B, T1, T2, T3, T4, T5, T6, T7, T8> Service for MapRequest<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8)>

fn poll_ready(self: &mut Self, cx: &mut Context<'_>) -> Poll<Result<(), <Self as >::Error>>
fn call(self: &mut Self, req: Request<B>) -> <Self as >::Future

impl<F, Fut, S, I, B, T1, T2, T3, T4, T5, T6, T7, T8, T9> Service for MapRequest<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9)>

fn poll_ready(self: &mut Self, cx: &mut Context<'_>) -> Poll<Result<(), <Self as >::Error>>
fn call(self: &mut Self, req: Request<B>) -> <Self as >::Future

impl<F, Fut, S, I, B, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> Service for MapRequest<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)>

fn poll_ready(self: &mut Self, cx: &mut Context<'_>) -> Poll<Result<(), <Self as >::Error>>
fn call(self: &mut Self, req: Request<B>) -> <Self as >::Future

impl<F, Fut, S, I, B, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> Service for MapRequest<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)>

fn poll_ready(self: &mut Self, cx: &mut Context<'_>) -> Poll<Result<(), <Self as >::Error>>
fn call(self: &mut Self, req: Request<B>) -> <Self as >::Future

impl<F, Fut, S, I, B, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> Service for MapRequest<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)>

fn poll_ready(self: &mut Self, cx: &mut Context<'_>) -> Poll<Result<(), <Self as >::Error>>
fn call(self: &mut Self, req: Request<B>) -> <Self as >::Future

impl<F, Fut, S, I, B, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13> Service for MapRequest<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13)>

fn poll_ready(self: &mut Self, cx: &mut Context<'_>) -> Poll<Result<(), <Self as >::Error>>
fn call(self: &mut Self, req: Request<B>) -> <Self as >::Future

impl<F, Fut, S, I, B, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14> Service for MapRequest<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14)>

fn poll_ready(self: &mut Self, cx: &mut Context<'_>) -> Poll<Result<(), <Self as >::Error>>
fn call(self: &mut Self, req: Request<B>) -> <Self as >::Future

impl<F, Fut, S, I, B, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> Service for MapRequest<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15)>

fn poll_ready(self: &mut Self, cx: &mut Context<'_>) -> Poll<Result<(), <Self as >::Error>>
fn call(self: &mut Self, req: Request<B>) -> <Self as >::Future

impl<F, Fut, S, I, B, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16> Service for MapRequest<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16)>

fn poll_ready(self: &mut Self, cx: &mut Context<'_>) -> Poll<Result<(), <Self as >::Error>>
fn call(self: &mut Self, req: Request<B>) -> <Self as >::Future

impl<F, S, I, T> Clone for MapRequest<F, S, I, T>

fn clone(self: &Self) -> Self

impl<F, S, I, T> Debug for MapRequest<F, S, I, T>

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

impl<F, S, I, T> Freeze for MapRequest<F, S, I, T>

impl<F, S, I, T> RefUnwindSafe for MapRequest<F, S, I, T>

impl<F, S, I, T> Send for MapRequest<F, S, I, T>

impl<F, S, I, T> Sync for MapRequest<F, S, I, T>

impl<F, S, I, T> Unpin for MapRequest<F, S, I, T>

impl<F, S, I, T> UnsafeUnpin for MapRequest<F, S, I, T>

impl<F, S, I, T> UnwindSafe for MapRequest<F, S, I, T>

impl<M, S, Target, Request> MakeService for MapRequest<F, S, I, T>

fn poll_ready(self: &mut Self, cx: &mut Context<'_>) -> Poll<Result<(), <M as MakeService<Target, Request>>::MakeError>>
fn make_service(self: &mut Self, target: Target) -> <M as MakeService<Target, Request>>::Future

impl<S, R> ServiceExt for MapRequest<F, S, I, T>

fn into_make_service(self: Self) -> IntoMakeService<S>
fn into_make_service_with_connect_info<C>(self: Self) -> IntoMakeServiceWithConnectInfo<S, C>

impl<T> Any for MapRequest<F, S, I, T>

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for MapRequest<F, S, I, T>

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for MapRequest<F, S, I, T>

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

impl<T> CloneToUninit for MapRequest<F, S, I, T>

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl<T> From for MapRequest<F, S, I, T>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> FromRef for MapRequest<F, S, I, T>

fn from_ref(input: &T) -> T

impl<T> Instrument for MapRequest<F, S, I, T>

impl<T> Same for MapRequest<F, S, I, T>

impl<T> ToOwned for MapRequest<F, S, I, T>

fn to_owned(self: &Self) -> T
fn clone_into(self: &Self, target: &mut T)

impl<T> WithSubscriber for MapRequest<F, S, I, T>

impl<T, Request> ServiceExt for MapRequest<F, S, I, T>

impl<T, U> Into for MapRequest<F, S, I, T>

fn into(self: 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 for MapRequest<F, S, I, T>

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

impl<T, U> TryInto for MapRequest<F, S, I, T>

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

impl<V, T> VZip for MapRequest<F, S, I, T>

fn vzip(self: Self) -> V