Struct MapRequest
pub struct MapRequest<F, S, I, T> {
f: F,
inner: I,
state: S,
_extractor: PhantomData<fn() -> T>,
}
Expand description
A middleware created from an async function that transforms a request.
Created with map_request
. See that function for more details.
Fields§
§f: F
§inner: I
§state: S
§_extractor: PhantomData<fn() -> T>
Trait Implementations§
§impl<F, S, I, T> Clone for MapRequest<F, S, I, T>
impl<F, S, I, T> Clone for MapRequest<F, S, I, T>
§fn clone(&self) -> MapRequest<F, S, I, T>
fn clone(&self) -> MapRequest<F, S, I, T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl<F, S, I, T> Debug for MapRequest<F, S, I, T>
impl<F, S, I, T> Debug for MapRequest<F, S, I, T>
§impl<F, Fut, S, I, B, T1> Service<Request<B>> for MapRequest<F, S, I, (T1,)>where
F: FnMut(T1) -> Fut + Clone + Send + 'static,
T1: FromRequest<S> + Send,
Fut: Future + Send + 'static,
<Fut as Future>::Output: IntoMapRequestResult<B> + Send + 'static,
I: Service<Request<B>, Error = Infallible> + Clone + Send + 'static,
<I as Service<Request<B>>>::Response: IntoResponse,
<I as Service<Request<B>>>::Future: Send + 'static,
B: Body<Data = Bytes> + Send + 'static,
<B as Body>::Error: Into<Box<dyn Error + Send + Sync>>,
S: Clone + Send + Sync + 'static,
impl<F, Fut, S, I, B, T1> Service<Request<B>> for MapRequest<F, S, I, (T1,)>where
F: FnMut(T1) -> Fut + Clone + Send + 'static,
T1: FromRequest<S> + Send,
Fut: Future + Send + 'static,
<Fut as Future>::Output: IntoMapRequestResult<B> + Send + 'static,
I: Service<Request<B>, Error = Infallible> + Clone + Send + 'static,
<I as Service<Request<B>>>::Response: IntoResponse,
<I as Service<Request<B>>>::Future: Send + 'static,
B: Body<Data = Bytes> + Send + 'static,
<B as Body>::Error: Into<Box<dyn Error + Send + Sync>>,
S: Clone + Send + Sync + 'static,
§type Error = Infallible
type Error = Infallible
Errors produced by the service.
§type Future = ResponseFuture
type Future = ResponseFuture
The future response value.
§fn poll_ready(
&mut self,
cx: &mut Context<'_>,
) -> Poll<Result<(), <MapRequest<F, S, I, (T1,)> as Service<Request<B>>>::Error>>
fn poll_ready( &mut self, cx: &mut Context<'_>, ) -> Poll<Result<(), <MapRequest<F, S, I, (T1,)> as Service<Request<B>>>::Error>>
Returns
Poll::Ready(Ok(()))
when the service is able to process requests. Read more§impl<F, Fut, S, I, B, T1, T2> Service<Request<B>> for MapRequest<F, S, I, (T1, T2)>where
F: FnMut(T1, T2) -> Fut + Clone + Send + 'static,
T1: FromRequestParts<S> + Send,
T2: FromRequest<S> + Send,
Fut: Future + Send + 'static,
<Fut as Future>::Output: IntoMapRequestResult<B> + Send + 'static,
I: Service<Request<B>, Error = Infallible> + Clone + Send + 'static,
<I as Service<Request<B>>>::Response: IntoResponse,
<I as Service<Request<B>>>::Future: Send + 'static,
B: Body<Data = Bytes> + Send + 'static,
<B as Body>::Error: Into<Box<dyn Error + Send + Sync>>,
S: Clone + Send + Sync + 'static,
impl<F, Fut, S, I, B, T1, T2> Service<Request<B>> for MapRequest<F, S, I, (T1, T2)>where
F: FnMut(T1, T2) -> Fut + Clone + Send + 'static,
T1: FromRequestParts<S> + Send,
T2: FromRequest<S> + Send,
Fut: Future + Send + 'static,
<Fut as Future>::Output: IntoMapRequestResult<B> + Send + 'static,
I: Service<Request<B>, Error = Infallible> + Clone + Send + 'static,
<I as Service<Request<B>>>::Response: IntoResponse,
<I as Service<Request<B>>>::Future: Send + 'static,
B: Body<Data = Bytes> + Send + 'static,
<B as Body>::Error: Into<Box<dyn Error + Send + Sync>>,
S: Clone + Send + Sync + 'static,
§type Error = Infallible
type Error = Infallible
Errors produced by the service.
§type Future = ResponseFuture
type Future = ResponseFuture
The future response value.
§fn poll_ready(
&mut self,
cx: &mut Context<'_>,
) -> Poll<Result<(), <MapRequest<F, S, I, (T1, T2)> as Service<Request<B>>>::Error>>
fn poll_ready( &mut self, cx: &mut Context<'_>, ) -> Poll<Result<(), <MapRequest<F, S, I, (T1, T2)> as Service<Request<B>>>::Error>>
Returns
Poll::Ready(Ok(()))
when the service is able to process requests. Read more§impl<F, Fut, S, I, B, T1, T2, T3> Service<Request<B>> for MapRequest<F, S, I, (T1, T2, T3)>where
F: FnMut(T1, T2, T3) -> Fut + Clone + Send + 'static,
T1: FromRequestParts<S> + Send,
T2: FromRequestParts<S> + Send,
T3: FromRequest<S> + Send,
Fut: Future + Send + 'static,
<Fut as Future>::Output: IntoMapRequestResult<B> + Send + 'static,
I: Service<Request<B>, Error = Infallible> + Clone + Send + 'static,
<I as Service<Request<B>>>::Response: IntoResponse,
<I as Service<Request<B>>>::Future: Send + 'static,
B: Body<Data = Bytes> + Send + 'static,
<B as Body>::Error: Into<Box<dyn Error + Send + Sync>>,
S: Clone + Send + Sync + 'static,
impl<F, Fut, S, I, B, T1, T2, T3> Service<Request<B>> for MapRequest<F, S, I, (T1, T2, T3)>where
F: FnMut(T1, T2, T3) -> Fut + Clone + Send + 'static,
T1: FromRequestParts<S> + Send,
T2: FromRequestParts<S> + Send,
T3: FromRequest<S> + Send,
Fut: Future + Send + 'static,
<Fut as Future>::Output: IntoMapRequestResult<B> + Send + 'static,
I: Service<Request<B>, Error = Infallible> + Clone + Send + 'static,
<I as Service<Request<B>>>::Response: IntoResponse,
<I as Service<Request<B>>>::Future: Send + 'static,
B: Body<Data = Bytes> + Send + 'static,
<B as Body>::Error: Into<Box<dyn Error + Send + Sync>>,
S: Clone + Send + Sync + 'static,
§type Error = Infallible
type Error = Infallible
Errors produced by the service.
§type Future = ResponseFuture
type Future = ResponseFuture
The future response value.
§fn poll_ready(
&mut self,
cx: &mut Context<'_>,
) -> Poll<Result<(), <MapRequest<F, S, I, (T1, T2, T3)> as Service<Request<B>>>::Error>>
fn poll_ready( &mut self, cx: &mut Context<'_>, ) -> Poll<Result<(), <MapRequest<F, S, I, (T1, T2, T3)> as Service<Request<B>>>::Error>>
Returns
Poll::Ready(Ok(()))
when the service is able to process requests. Read more§fn call(
&mut self,
req: Request<B>,
) -> <MapRequest<F, S, I, (T1, T2, T3)> as Service<Request<B>>>::Future
fn call( &mut self, req: Request<B>, ) -> <MapRequest<F, S, I, (T1, T2, T3)> as Service<Request<B>>>::Future
Process the request and return the response asynchronously. Read more
§impl<F, Fut, S, I, B, T1, T2, T3, T4> Service<Request<B>> for MapRequest<F, S, I, (T1, T2, T3, T4)>where
F: FnMut(T1, T2, T3, T4) -> Fut + Clone + Send + 'static,
T1: FromRequestParts<S> + Send,
T2: FromRequestParts<S> + Send,
T3: FromRequestParts<S> + Send,
T4: FromRequest<S> + Send,
Fut: Future + Send + 'static,
<Fut as Future>::Output: IntoMapRequestResult<B> + Send + 'static,
I: Service<Request<B>, Error = Infallible> + Clone + Send + 'static,
<I as Service<Request<B>>>::Response: IntoResponse,
<I as Service<Request<B>>>::Future: Send + 'static,
B: Body<Data = Bytes> + Send + 'static,
<B as Body>::Error: Into<Box<dyn Error + Send + Sync>>,
S: Clone + Send + Sync + 'static,
impl<F, Fut, S, I, B, T1, T2, T3, T4> Service<Request<B>> for MapRequest<F, S, I, (T1, T2, T3, T4)>where
F: FnMut(T1, T2, T3, T4) -> Fut + Clone + Send + 'static,
T1: FromRequestParts<S> + Send,
T2: FromRequestParts<S> + Send,
T3: FromRequestParts<S> + Send,
T4: FromRequest<S> + Send,
Fut: Future + Send + 'static,
<Fut as Future>::Output: IntoMapRequestResult<B> + Send + 'static,
I: Service<Request<B>, Error = Infallible> + Clone + Send + 'static,
<I as Service<Request<B>>>::Response: IntoResponse,
<I as Service<Request<B>>>::Future: Send + 'static,
B: Body<Data = Bytes> + Send + 'static,
<B as Body>::Error: Into<Box<dyn Error + Send + Sync>>,
S: Clone + Send + Sync + 'static,
§type Error = Infallible
type Error = Infallible
Errors produced by the service.
§type Future = ResponseFuture
type Future = ResponseFuture
The future response value.
§fn poll_ready(
&mut self,
cx: &mut Context<'_>,
) -> Poll<Result<(), <MapRequest<F, S, I, (T1, T2, T3, T4)> as Service<Request<B>>>::Error>>
fn poll_ready( &mut self, cx: &mut Context<'_>, ) -> Poll<Result<(), <MapRequest<F, S, I, (T1, T2, T3, T4)> as Service<Request<B>>>::Error>>
Returns
Poll::Ready(Ok(()))
when the service is able to process requests. Read more§fn call(
&mut self,
req: Request<B>,
) -> <MapRequest<F, S, I, (T1, T2, T3, T4)> as Service<Request<B>>>::Future
fn call( &mut self, req: Request<B>, ) -> <MapRequest<F, S, I, (T1, T2, T3, T4)> as Service<Request<B>>>::Future
Process the request and return the response asynchronously. Read more
§impl<F, Fut, S, I, B, T1, T2, T3, T4, T5> Service<Request<B>> for MapRequest<F, S, I, (T1, T2, T3, T4, T5)>where
F: FnMut(T1, T2, T3, T4, T5) -> Fut + Clone + Send + 'static,
T1: FromRequestParts<S> + Send,
T2: FromRequestParts<S> + Send,
T3: FromRequestParts<S> + Send,
T4: FromRequestParts<S> + Send,
T5: FromRequest<S> + Send,
Fut: Future + Send + 'static,
<Fut as Future>::Output: IntoMapRequestResult<B> + Send + 'static,
I: Service<Request<B>, Error = Infallible> + Clone + Send + 'static,
<I as Service<Request<B>>>::Response: IntoResponse,
<I as Service<Request<B>>>::Future: Send + 'static,
B: Body<Data = Bytes> + Send + 'static,
<B as Body>::Error: Into<Box<dyn Error + Send + Sync>>,
S: Clone + Send + Sync + 'static,
impl<F, Fut, S, I, B, T1, T2, T3, T4, T5> Service<Request<B>> for MapRequest<F, S, I, (T1, T2, T3, T4, T5)>where
F: FnMut(T1, T2, T3, T4, T5) -> Fut + Clone + Send + 'static,
T1: FromRequestParts<S> + Send,
T2: FromRequestParts<S> + Send,
T3: FromRequestParts<S> + Send,
T4: FromRequestParts<S> + Send,
T5: FromRequest<S> + Send,
Fut: Future + Send + 'static,
<Fut as Future>::Output: IntoMapRequestResult<B> + Send + 'static,
I: Service<Request<B>, Error = Infallible> + Clone + Send + 'static,
<I as Service<Request<B>>>::Response: IntoResponse,
<I as Service<Request<B>>>::Future: Send + 'static,
B: Body<Data = Bytes> + Send + 'static,
<B as Body>::Error: Into<Box<dyn Error + Send + Sync>>,
S: Clone + Send + Sync + 'static,
§type Error = Infallible
type Error = Infallible
Errors produced by the service.
§type Future = ResponseFuture
type Future = ResponseFuture
The future response value.
§fn poll_ready(
&mut self,
cx: &mut Context<'_>,
) -> Poll<Result<(), <MapRequest<F, S, I, (T1, T2, T3, T4, T5)> as Service<Request<B>>>::Error>>
fn poll_ready( &mut self, cx: &mut Context<'_>, ) -> Poll<Result<(), <MapRequest<F, S, I, (T1, T2, T3, T4, T5)> as Service<Request<B>>>::Error>>
Returns
Poll::Ready(Ok(()))
when the service is able to process requests. Read more§fn call(
&mut self,
req: Request<B>,
) -> <MapRequest<F, S, I, (T1, T2, T3, T4, T5)> as Service<Request<B>>>::Future
fn call( &mut self, req: Request<B>, ) -> <MapRequest<F, S, I, (T1, T2, T3, T4, T5)> as Service<Request<B>>>::Future
Process the request and return the response asynchronously. Read more
§impl<F, Fut, S, I, B, T1, T2, T3, T4, T5, T6> Service<Request<B>> for MapRequest<F, S, I, (T1, T2, T3, T4, T5, T6)>where
F: FnMut(T1, T2, T3, T4, T5, T6) -> Fut + Clone + Send + 'static,
T1: FromRequestParts<S> + Send,
T2: FromRequestParts<S> + Send,
T3: FromRequestParts<S> + Send,
T4: FromRequestParts<S> + Send,
T5: FromRequestParts<S> + Send,
T6: FromRequest<S> + Send,
Fut: Future + Send + 'static,
<Fut as Future>::Output: IntoMapRequestResult<B> + Send + 'static,
I: Service<Request<B>, Error = Infallible> + Clone + Send + 'static,
<I as Service<Request<B>>>::Response: IntoResponse,
<I as Service<Request<B>>>::Future: Send + 'static,
B: Body<Data = Bytes> + Send + 'static,
<B as Body>::Error: Into<Box<dyn Error + Send + Sync>>,
S: Clone + Send + Sync + 'static,
impl<F, Fut, S, I, B, T1, T2, T3, T4, T5, T6> Service<Request<B>> for MapRequest<F, S, I, (T1, T2, T3, T4, T5, T6)>where
F: FnMut(T1, T2, T3, T4, T5, T6) -> Fut + Clone + Send + 'static,
T1: FromRequestParts<S> + Send,
T2: FromRequestParts<S> + Send,
T3: FromRequestParts<S> + Send,
T4: FromRequestParts<S> + Send,
T5: FromRequestParts<S> + Send,
T6: FromRequest<S> + Send,
Fut: Future + Send + 'static,
<Fut as Future>::Output: IntoMapRequestResult<B> + Send + 'static,
I: Service<Request<B>, Error = Infallible> + Clone + Send + 'static,
<I as Service<Request<B>>>::Response: IntoResponse,
<I as Service<Request<B>>>::Future: Send + 'static,
B: Body<Data = Bytes> + Send + 'static,
<B as Body>::Error: Into<Box<dyn Error + Send + Sync>>,
S: Clone + Send + Sync + 'static,
§type Error = Infallible
type Error = Infallible
Errors produced by the service.
§type Future = ResponseFuture
type Future = ResponseFuture
The future response value.
§fn poll_ready(
&mut self,
cx: &mut Context<'_>,
) -> Poll<Result<(), <MapRequest<F, S, I, (T1, T2, T3, T4, T5, T6)> as Service<Request<B>>>::Error>>
fn poll_ready( &mut self, cx: &mut Context<'_>, ) -> Poll<Result<(), <MapRequest<F, S, I, (T1, T2, T3, T4, T5, T6)> as Service<Request<B>>>::Error>>
Returns
Poll::Ready(Ok(()))
when the service is able to process requests. Read more§fn call(
&mut self,
req: Request<B>,
) -> <MapRequest<F, S, I, (T1, T2, T3, T4, T5, T6)> as Service<Request<B>>>::Future
fn call( &mut self, req: Request<B>, ) -> <MapRequest<F, S, I, (T1, T2, T3, T4, T5, T6)> as Service<Request<B>>>::Future
Process the request and return the response asynchronously. Read more
§impl<F, Fut, S, I, B, T1, T2, T3, T4, T5, T6, T7> Service<Request<B>> for MapRequest<F, S, I, (T1, T2, T3, T4, T5, T6, T7)>where
F: FnMut(T1, T2, T3, T4, T5, T6, T7) -> Fut + Clone + Send + 'static,
T1: FromRequestParts<S> + Send,
T2: FromRequestParts<S> + Send,
T3: FromRequestParts<S> + Send,
T4: FromRequestParts<S> + Send,
T5: FromRequestParts<S> + Send,
T6: FromRequestParts<S> + Send,
T7: FromRequest<S> + Send,
Fut: Future + Send + 'static,
<Fut as Future>::Output: IntoMapRequestResult<B> + Send + 'static,
I: Service<Request<B>, Error = Infallible> + Clone + Send + 'static,
<I as Service<Request<B>>>::Response: IntoResponse,
<I as Service<Request<B>>>::Future: Send + 'static,
B: Body<Data = Bytes> + Send + 'static,
<B as Body>::Error: Into<Box<dyn Error + Send + Sync>>,
S: Clone + Send + Sync + 'static,
impl<F, Fut, S, I, B, T1, T2, T3, T4, T5, T6, T7> Service<Request<B>> for MapRequest<F, S, I, (T1, T2, T3, T4, T5, T6, T7)>where
F: FnMut(T1, T2, T3, T4, T5, T6, T7) -> Fut + Clone + Send + 'static,
T1: FromRequestParts<S> + Send,
T2: FromRequestParts<S> + Send,
T3: FromRequestParts<S> + Send,
T4: FromRequestParts<S> + Send,
T5: FromRequestParts<S> + Send,
T6: FromRequestParts<S> + Send,
T7: FromRequest<S> + Send,
Fut: Future + Send + 'static,
<Fut as Future>::Output: IntoMapRequestResult<B> + Send + 'static,
I: Service<Request<B>, Error = Infallible> + Clone + Send + 'static,
<I as Service<Request<B>>>::Response: IntoResponse,
<I as Service<Request<B>>>::Future: Send + 'static,
B: Body<Data = Bytes> + Send + 'static,
<B as Body>::Error: Into<Box<dyn Error + Send + Sync>>,
S: Clone + Send + Sync + 'static,
§type Error = Infallible
type Error = Infallible
Errors produced by the service.
§type Future = ResponseFuture
type Future = ResponseFuture
The future response value.
§fn poll_ready(
&mut self,
cx: &mut Context<'_>,
) -> Poll<Result<(), <MapRequest<F, S, I, (T1, T2, T3, T4, T5, T6, T7)> as Service<Request<B>>>::Error>>
fn poll_ready( &mut self, cx: &mut Context<'_>, ) -> Poll<Result<(), <MapRequest<F, S, I, (T1, T2, T3, T4, T5, T6, T7)> as Service<Request<B>>>::Error>>
Returns
Poll::Ready(Ok(()))
when the service is able to process requests. Read more§fn call(
&mut self,
req: Request<B>,
) -> <MapRequest<F, S, I, (T1, T2, T3, T4, T5, T6, T7)> as Service<Request<B>>>::Future
fn call( &mut self, req: Request<B>, ) -> <MapRequest<F, S, I, (T1, T2, T3, T4, T5, T6, T7)> as Service<Request<B>>>::Future
Process the request and return the response asynchronously. Read more
§impl<F, Fut, S, I, B, T1, T2, T3, T4, T5, T6, T7, T8> Service<Request<B>> for MapRequest<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8)>where
F: FnMut(T1, T2, T3, T4, T5, T6, T7, T8) -> Fut + Clone + Send + 'static,
T1: FromRequestParts<S> + Send,
T2: FromRequestParts<S> + Send,
T3: FromRequestParts<S> + Send,
T4: FromRequestParts<S> + Send,
T5: FromRequestParts<S> + Send,
T6: FromRequestParts<S> + Send,
T7: FromRequestParts<S> + Send,
T8: FromRequest<S> + Send,
Fut: Future + Send + 'static,
<Fut as Future>::Output: IntoMapRequestResult<B> + Send + 'static,
I: Service<Request<B>, Error = Infallible> + Clone + Send + 'static,
<I as Service<Request<B>>>::Response: IntoResponse,
<I as Service<Request<B>>>::Future: Send + 'static,
B: Body<Data = Bytes> + Send + 'static,
<B as Body>::Error: Into<Box<dyn Error + Send + Sync>>,
S: Clone + Send + Sync + 'static,
impl<F, Fut, S, I, B, T1, T2, T3, T4, T5, T6, T7, T8> Service<Request<B>> for MapRequest<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8)>where
F: FnMut(T1, T2, T3, T4, T5, T6, T7, T8) -> Fut + Clone + Send + 'static,
T1: FromRequestParts<S> + Send,
T2: FromRequestParts<S> + Send,
T3: FromRequestParts<S> + Send,
T4: FromRequestParts<S> + Send,
T5: FromRequestParts<S> + Send,
T6: FromRequestParts<S> + Send,
T7: FromRequestParts<S> + Send,
T8: FromRequest<S> + Send,
Fut: Future + Send + 'static,
<Fut as Future>::Output: IntoMapRequestResult<B> + Send + 'static,
I: Service<Request<B>, Error = Infallible> + Clone + Send + 'static,
<I as Service<Request<B>>>::Response: IntoResponse,
<I as Service<Request<B>>>::Future: Send + 'static,
B: Body<Data = Bytes> + Send + 'static,
<B as Body>::Error: Into<Box<dyn Error + Send + Sync>>,
S: Clone + Send + Sync + 'static,
§type Error = Infallible
type Error = Infallible
Errors produced by the service.
§type Future = ResponseFuture
type Future = ResponseFuture
The future response value.
§fn poll_ready(
&mut self,
cx: &mut Context<'_>,
) -> Poll<Result<(), <MapRequest<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8)> as Service<Request<B>>>::Error>>
fn poll_ready( &mut self, cx: &mut Context<'_>, ) -> Poll<Result<(), <MapRequest<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8)> as Service<Request<B>>>::Error>>
Returns
Poll::Ready(Ok(()))
when the service is able to process requests. Read more§fn call(
&mut self,
req: Request<B>,
) -> <MapRequest<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8)> as Service<Request<B>>>::Future
fn call( &mut self, req: Request<B>, ) -> <MapRequest<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8)> as Service<Request<B>>>::Future
Process the request and return the response asynchronously. Read more
§impl<F, Fut, S, I, B, T1, T2, T3, T4, T5, T6, T7, T8, T9> Service<Request<B>> for MapRequest<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9)>where
F: FnMut(T1, T2, T3, T4, T5, T6, T7, T8, T9) -> Fut + Clone + Send + 'static,
T1: FromRequestParts<S> + Send,
T2: FromRequestParts<S> + Send,
T3: FromRequestParts<S> + Send,
T4: FromRequestParts<S> + Send,
T5: FromRequestParts<S> + Send,
T6: FromRequestParts<S> + Send,
T7: FromRequestParts<S> + Send,
T8: FromRequestParts<S> + Send,
T9: FromRequest<S> + Send,
Fut: Future + Send + 'static,
<Fut as Future>::Output: IntoMapRequestResult<B> + Send + 'static,
I: Service<Request<B>, Error = Infallible> + Clone + Send + 'static,
<I as Service<Request<B>>>::Response: IntoResponse,
<I as Service<Request<B>>>::Future: Send + 'static,
B: Body<Data = Bytes> + Send + 'static,
<B as Body>::Error: Into<Box<dyn Error + Send + Sync>>,
S: Clone + Send + Sync + 'static,
impl<F, Fut, S, I, B, T1, T2, T3, T4, T5, T6, T7, T8, T9> Service<Request<B>> for MapRequest<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9)>where
F: FnMut(T1, T2, T3, T4, T5, T6, T7, T8, T9) -> Fut + Clone + Send + 'static,
T1: FromRequestParts<S> + Send,
T2: FromRequestParts<S> + Send,
T3: FromRequestParts<S> + Send,
T4: FromRequestParts<S> + Send,
T5: FromRequestParts<S> + Send,
T6: FromRequestParts<S> + Send,
T7: FromRequestParts<S> + Send,
T8: FromRequestParts<S> + Send,
T9: FromRequest<S> + Send,
Fut: Future + Send + 'static,
<Fut as Future>::Output: IntoMapRequestResult<B> + Send + 'static,
I: Service<Request<B>, Error = Infallible> + Clone + Send + 'static,
<I as Service<Request<B>>>::Response: IntoResponse,
<I as Service<Request<B>>>::Future: Send + 'static,
B: Body<Data = Bytes> + Send + 'static,
<B as Body>::Error: Into<Box<dyn Error + Send + Sync>>,
S: Clone + Send + Sync + 'static,
§type Error = Infallible
type Error = Infallible
Errors produced by the service.
§type Future = ResponseFuture
type Future = ResponseFuture
The future response value.
§fn poll_ready(
&mut self,
cx: &mut Context<'_>,
) -> Poll<Result<(), <MapRequest<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9)> as Service<Request<B>>>::Error>>
fn poll_ready( &mut self, cx: &mut Context<'_>, ) -> Poll<Result<(), <MapRequest<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9)> as Service<Request<B>>>::Error>>
Returns
Poll::Ready(Ok(()))
when the service is able to process requests. Read more§fn call(
&mut self,
req: Request<B>,
) -> <MapRequest<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9)> as Service<Request<B>>>::Future
fn call( &mut self, req: Request<B>, ) -> <MapRequest<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9)> as Service<Request<B>>>::Future
Process the request and return the response asynchronously. Read more
§impl<F, Fut, S, I, B, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> Service<Request<B>> for MapRequest<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)>where
F: FnMut(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10) -> Fut + Clone + Send + 'static,
T1: FromRequestParts<S> + Send,
T2: FromRequestParts<S> + Send,
T3: FromRequestParts<S> + Send,
T4: FromRequestParts<S> + Send,
T5: FromRequestParts<S> + Send,
T6: FromRequestParts<S> + Send,
T7: FromRequestParts<S> + Send,
T8: FromRequestParts<S> + Send,
T9: FromRequestParts<S> + Send,
T10: FromRequest<S> + Send,
Fut: Future + Send + 'static,
<Fut as Future>::Output: IntoMapRequestResult<B> + Send + 'static,
I: Service<Request<B>, Error = Infallible> + Clone + Send + 'static,
<I as Service<Request<B>>>::Response: IntoResponse,
<I as Service<Request<B>>>::Future: Send + 'static,
B: Body<Data = Bytes> + Send + 'static,
<B as Body>::Error: Into<Box<dyn Error + Send + Sync>>,
S: Clone + Send + Sync + 'static,
impl<F, Fut, S, I, B, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> Service<Request<B>> for MapRequest<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)>where
F: FnMut(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10) -> Fut + Clone + Send + 'static,
T1: FromRequestParts<S> + Send,
T2: FromRequestParts<S> + Send,
T3: FromRequestParts<S> + Send,
T4: FromRequestParts<S> + Send,
T5: FromRequestParts<S> + Send,
T6: FromRequestParts<S> + Send,
T7: FromRequestParts<S> + Send,
T8: FromRequestParts<S> + Send,
T9: FromRequestParts<S> + Send,
T10: FromRequest<S> + Send,
Fut: Future + Send + 'static,
<Fut as Future>::Output: IntoMapRequestResult<B> + Send + 'static,
I: Service<Request<B>, Error = Infallible> + Clone + Send + 'static,
<I as Service<Request<B>>>::Response: IntoResponse,
<I as Service<Request<B>>>::Future: Send + 'static,
B: Body<Data = Bytes> + Send + 'static,
<B as Body>::Error: Into<Box<dyn Error + Send + Sync>>,
S: Clone + Send + Sync + 'static,
§type Error = Infallible
type Error = Infallible
Errors produced by the service.
§type Future = ResponseFuture
type Future = ResponseFuture
The future response value.
§fn poll_ready(
&mut self,
cx: &mut Context<'_>,
) -> Poll<Result<(), <MapRequest<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)> as Service<Request<B>>>::Error>>
fn poll_ready( &mut self, cx: &mut Context<'_>, ) -> Poll<Result<(), <MapRequest<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)> as Service<Request<B>>>::Error>>
Returns
Poll::Ready(Ok(()))
when the service is able to process requests. Read more§fn call(
&mut self,
req: Request<B>,
) -> <MapRequest<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)> as Service<Request<B>>>::Future
fn call( &mut self, req: Request<B>, ) -> <MapRequest<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)> as Service<Request<B>>>::Future
Process the request and return the response asynchronously. Read more
§impl<F, Fut, S, I, B, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> Service<Request<B>> for MapRequest<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)>where
F: FnMut(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11) -> Fut + Clone + Send + 'static,
T1: FromRequestParts<S> + Send,
T2: FromRequestParts<S> + Send,
T3: FromRequestParts<S> + Send,
T4: FromRequestParts<S> + Send,
T5: FromRequestParts<S> + Send,
T6: FromRequestParts<S> + Send,
T7: FromRequestParts<S> + Send,
T8: FromRequestParts<S> + Send,
T9: FromRequestParts<S> + Send,
T10: FromRequestParts<S> + Send,
T11: FromRequest<S> + Send,
Fut: Future + Send + 'static,
<Fut as Future>::Output: IntoMapRequestResult<B> + Send + 'static,
I: Service<Request<B>, Error = Infallible> + Clone + Send + 'static,
<I as Service<Request<B>>>::Response: IntoResponse,
<I as Service<Request<B>>>::Future: Send + 'static,
B: Body<Data = Bytes> + Send + 'static,
<B as Body>::Error: Into<Box<dyn Error + Send + Sync>>,
S: Clone + Send + Sync + 'static,
impl<F, Fut, S, I, B, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> Service<Request<B>> for MapRequest<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)>where
F: FnMut(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11) -> Fut + Clone + Send + 'static,
T1: FromRequestParts<S> + Send,
T2: FromRequestParts<S> + Send,
T3: FromRequestParts<S> + Send,
T4: FromRequestParts<S> + Send,
T5: FromRequestParts<S> + Send,
T6: FromRequestParts<S> + Send,
T7: FromRequestParts<S> + Send,
T8: FromRequestParts<S> + Send,
T9: FromRequestParts<S> + Send,
T10: FromRequestParts<S> + Send,
T11: FromRequest<S> + Send,
Fut: Future + Send + 'static,
<Fut as Future>::Output: IntoMapRequestResult<B> + Send + 'static,
I: Service<Request<B>, Error = Infallible> + Clone + Send + 'static,
<I as Service<Request<B>>>::Response: IntoResponse,
<I as Service<Request<B>>>::Future: Send + 'static,
B: Body<Data = Bytes> + Send + 'static,
<B as Body>::Error: Into<Box<dyn Error + Send + Sync>>,
S: Clone + Send + Sync + 'static,
§type Error = Infallible
type Error = Infallible
Errors produced by the service.
§type Future = ResponseFuture
type Future = ResponseFuture
The future response value.
§fn poll_ready(
&mut self,
cx: &mut Context<'_>,
) -> Poll<Result<(), <MapRequest<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)> as Service<Request<B>>>::Error>>
fn poll_ready( &mut self, cx: &mut Context<'_>, ) -> Poll<Result<(), <MapRequest<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)> as Service<Request<B>>>::Error>>
Returns
Poll::Ready(Ok(()))
when the service is able to process requests. Read more§fn call(
&mut self,
req: Request<B>,
) -> <MapRequest<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)> as Service<Request<B>>>::Future
fn call( &mut self, req: Request<B>, ) -> <MapRequest<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)> as Service<Request<B>>>::Future
Process the request and return the response asynchronously. Read more
§impl<F, Fut, S, I, B, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> Service<Request<B>> for MapRequest<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)>where
F: FnMut(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12) -> Fut + Clone + Send + 'static,
T1: FromRequestParts<S> + Send,
T2: FromRequestParts<S> + Send,
T3: FromRequestParts<S> + Send,
T4: FromRequestParts<S> + Send,
T5: FromRequestParts<S> + Send,
T6: FromRequestParts<S> + Send,
T7: FromRequestParts<S> + Send,
T8: FromRequestParts<S> + Send,
T9: FromRequestParts<S> + Send,
T10: FromRequestParts<S> + Send,
T11: FromRequestParts<S> + Send,
T12: FromRequest<S> + Send,
Fut: Future + Send + 'static,
<Fut as Future>::Output: IntoMapRequestResult<B> + Send + 'static,
I: Service<Request<B>, Error = Infallible> + Clone + Send + 'static,
<I as Service<Request<B>>>::Response: IntoResponse,
<I as Service<Request<B>>>::Future: Send + 'static,
B: Body<Data = Bytes> + Send + 'static,
<B as Body>::Error: Into<Box<dyn Error + Send + Sync>>,
S: Clone + Send + Sync + 'static,
impl<F, Fut, S, I, B, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> Service<Request<B>> for MapRequest<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)>where
F: FnMut(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12) -> Fut + Clone + Send + 'static,
T1: FromRequestParts<S> + Send,
T2: FromRequestParts<S> + Send,
T3: FromRequestParts<S> + Send,
T4: FromRequestParts<S> + Send,
T5: FromRequestParts<S> + Send,
T6: FromRequestParts<S> + Send,
T7: FromRequestParts<S> + Send,
T8: FromRequestParts<S> + Send,
T9: FromRequestParts<S> + Send,
T10: FromRequestParts<S> + Send,
T11: FromRequestParts<S> + Send,
T12: FromRequest<S> + Send,
Fut: Future + Send + 'static,
<Fut as Future>::Output: IntoMapRequestResult<B> + Send + 'static,
I: Service<Request<B>, Error = Infallible> + Clone + Send + 'static,
<I as Service<Request<B>>>::Response: IntoResponse,
<I as Service<Request<B>>>::Future: Send + 'static,
B: Body<Data = Bytes> + Send + 'static,
<B as Body>::Error: Into<Box<dyn Error + Send + Sync>>,
S: Clone + Send + Sync + 'static,
§type Error = Infallible
type Error = Infallible
Errors produced by the service.
§type Future = ResponseFuture
type Future = ResponseFuture
The future response value.
§fn poll_ready(
&mut self,
cx: &mut Context<'_>,
) -> Poll<Result<(), <MapRequest<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)> as Service<Request<B>>>::Error>>
fn poll_ready( &mut self, cx: &mut Context<'_>, ) -> Poll<Result<(), <MapRequest<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)> as Service<Request<B>>>::Error>>
Returns
Poll::Ready(Ok(()))
when the service is able to process requests. Read more§fn call(
&mut self,
req: Request<B>,
) -> <MapRequest<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)> as Service<Request<B>>>::Future
fn call( &mut self, req: Request<B>, ) -> <MapRequest<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)> as Service<Request<B>>>::Future
Process the request and return the response asynchronously. Read more
§impl<F, Fut, S, I, B, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13> Service<Request<B>> for MapRequest<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13)>where
F: FnMut(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13) -> Fut + Clone + Send + 'static,
T1: FromRequestParts<S> + Send,
T2: FromRequestParts<S> + Send,
T3: FromRequestParts<S> + Send,
T4: FromRequestParts<S> + Send,
T5: FromRequestParts<S> + Send,
T6: FromRequestParts<S> + Send,
T7: FromRequestParts<S> + Send,
T8: FromRequestParts<S> + Send,
T9: FromRequestParts<S> + Send,
T10: FromRequestParts<S> + Send,
T11: FromRequestParts<S> + Send,
T12: FromRequestParts<S> + Send,
T13: FromRequest<S> + Send,
Fut: Future + Send + 'static,
<Fut as Future>::Output: IntoMapRequestResult<B> + Send + 'static,
I: Service<Request<B>, Error = Infallible> + Clone + Send + 'static,
<I as Service<Request<B>>>::Response: IntoResponse,
<I as Service<Request<B>>>::Future: Send + 'static,
B: Body<Data = Bytes> + Send + 'static,
<B as Body>::Error: Into<Box<dyn Error + Send + Sync>>,
S: Clone + Send + Sync + 'static,
impl<F, Fut, S, I, B, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13> Service<Request<B>> for MapRequest<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13)>where
F: FnMut(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13) -> Fut + Clone + Send + 'static,
T1: FromRequestParts<S> + Send,
T2: FromRequestParts<S> + Send,
T3: FromRequestParts<S> + Send,
T4: FromRequestParts<S> + Send,
T5: FromRequestParts<S> + Send,
T6: FromRequestParts<S> + Send,
T7: FromRequestParts<S> + Send,
T8: FromRequestParts<S> + Send,
T9: FromRequestParts<S> + Send,
T10: FromRequestParts<S> + Send,
T11: FromRequestParts<S> + Send,
T12: FromRequestParts<S> + Send,
T13: FromRequest<S> + Send,
Fut: Future + Send + 'static,
<Fut as Future>::Output: IntoMapRequestResult<B> + Send + 'static,
I: Service<Request<B>, Error = Infallible> + Clone + Send + 'static,
<I as Service<Request<B>>>::Response: IntoResponse,
<I as Service<Request<B>>>::Future: Send + 'static,
B: Body<Data = Bytes> + Send + 'static,
<B as Body>::Error: Into<Box<dyn Error + Send + Sync>>,
S: Clone + Send + Sync + 'static,
§type Error = Infallible
type Error = Infallible
Errors produced by the service.
§type Future = ResponseFuture
type Future = ResponseFuture
The future response value.
§fn poll_ready(
&mut self,
cx: &mut Context<'_>,
) -> Poll<Result<(), <MapRequest<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13)> as Service<Request<B>>>::Error>>
fn poll_ready( &mut self, cx: &mut Context<'_>, ) -> Poll<Result<(), <MapRequest<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13)> as Service<Request<B>>>::Error>>
Returns
Poll::Ready(Ok(()))
when the service is able to process requests. Read more§fn call(
&mut self,
req: Request<B>,
) -> <MapRequest<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13)> as Service<Request<B>>>::Future
fn call( &mut self, req: Request<B>, ) -> <MapRequest<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13)> as Service<Request<B>>>::Future
Process the request and return the response asynchronously. Read more
§impl<F, Fut, S, I, B, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14> Service<Request<B>> for MapRequest<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14)>where
F: FnMut(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14) -> Fut + Clone + Send + 'static,
T1: FromRequestParts<S> + Send,
T2: FromRequestParts<S> + Send,
T3: FromRequestParts<S> + Send,
T4: FromRequestParts<S> + Send,
T5: FromRequestParts<S> + Send,
T6: FromRequestParts<S> + Send,
T7: FromRequestParts<S> + Send,
T8: FromRequestParts<S> + Send,
T9: FromRequestParts<S> + Send,
T10: FromRequestParts<S> + Send,
T11: FromRequestParts<S> + Send,
T12: FromRequestParts<S> + Send,
T13: FromRequestParts<S> + Send,
T14: FromRequest<S> + Send,
Fut: Future + Send + 'static,
<Fut as Future>::Output: IntoMapRequestResult<B> + Send + 'static,
I: Service<Request<B>, Error = Infallible> + Clone + Send + 'static,
<I as Service<Request<B>>>::Response: IntoResponse,
<I as Service<Request<B>>>::Future: Send + 'static,
B: Body<Data = Bytes> + Send + 'static,
<B as Body>::Error: Into<Box<dyn Error + Send + Sync>>,
S: Clone + Send + Sync + 'static,
impl<F, Fut, S, I, B, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14> Service<Request<B>> for MapRequest<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14)>where
F: FnMut(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14) -> Fut + Clone + Send + 'static,
T1: FromRequestParts<S> + Send,
T2: FromRequestParts<S> + Send,
T3: FromRequestParts<S> + Send,
T4: FromRequestParts<S> + Send,
T5: FromRequestParts<S> + Send,
T6: FromRequestParts<S> + Send,
T7: FromRequestParts<S> + Send,
T8: FromRequestParts<S> + Send,
T9: FromRequestParts<S> + Send,
T10: FromRequestParts<S> + Send,
T11: FromRequestParts<S> + Send,
T12: FromRequestParts<S> + Send,
T13: FromRequestParts<S> + Send,
T14: FromRequest<S> + Send,
Fut: Future + Send + 'static,
<Fut as Future>::Output: IntoMapRequestResult<B> + Send + 'static,
I: Service<Request<B>, Error = Infallible> + Clone + Send + 'static,
<I as Service<Request<B>>>::Response: IntoResponse,
<I as Service<Request<B>>>::Future: Send + 'static,
B: Body<Data = Bytes> + Send + 'static,
<B as Body>::Error: Into<Box<dyn Error + Send + Sync>>,
S: Clone + Send + Sync + 'static,
§type Error = Infallible
type Error = Infallible
Errors produced by the service.
§type Future = ResponseFuture
type Future = ResponseFuture
The future response value.
§fn poll_ready(
&mut self,
cx: &mut Context<'_>,
) -> Poll<Result<(), <MapRequest<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14)> as Service<Request<B>>>::Error>>
fn poll_ready( &mut self, cx: &mut Context<'_>, ) -> Poll<Result<(), <MapRequest<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14)> as Service<Request<B>>>::Error>>
Returns
Poll::Ready(Ok(()))
when the service is able to process requests. Read more§fn call(
&mut self,
req: Request<B>,
) -> <MapRequest<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14)> as Service<Request<B>>>::Future
fn call( &mut self, req: Request<B>, ) -> <MapRequest<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14)> as Service<Request<B>>>::Future
Process the request and return the response asynchronously. Read more
§impl<F, Fut, S, I, B, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> Service<Request<B>> for MapRequest<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15)>where
F: FnMut(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15) -> Fut + Clone + Send + 'static,
T1: FromRequestParts<S> + Send,
T2: FromRequestParts<S> + Send,
T3: FromRequestParts<S> + Send,
T4: FromRequestParts<S> + Send,
T5: FromRequestParts<S> + Send,
T6: FromRequestParts<S> + Send,
T7: FromRequestParts<S> + Send,
T8: FromRequestParts<S> + Send,
T9: FromRequestParts<S> + Send,
T10: FromRequestParts<S> + Send,
T11: FromRequestParts<S> + Send,
T12: FromRequestParts<S> + Send,
T13: FromRequestParts<S> + Send,
T14: FromRequestParts<S> + Send,
T15: FromRequest<S> + Send,
Fut: Future + Send + 'static,
<Fut as Future>::Output: IntoMapRequestResult<B> + Send + 'static,
I: Service<Request<B>, Error = Infallible> + Clone + Send + 'static,
<I as Service<Request<B>>>::Response: IntoResponse,
<I as Service<Request<B>>>::Future: Send + 'static,
B: Body<Data = Bytes> + Send + 'static,
<B as Body>::Error: Into<Box<dyn Error + Send + Sync>>,
S: Clone + Send + Sync + 'static,
impl<F, Fut, S, I, B, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> Service<Request<B>> for MapRequest<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15)>where
F: FnMut(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15) -> Fut + Clone + Send + 'static,
T1: FromRequestParts<S> + Send,
T2: FromRequestParts<S> + Send,
T3: FromRequestParts<S> + Send,
T4: FromRequestParts<S> + Send,
T5: FromRequestParts<S> + Send,
T6: FromRequestParts<S> + Send,
T7: FromRequestParts<S> + Send,
T8: FromRequestParts<S> + Send,
T9: FromRequestParts<S> + Send,
T10: FromRequestParts<S> + Send,
T11: FromRequestParts<S> + Send,
T12: FromRequestParts<S> + Send,
T13: FromRequestParts<S> + Send,
T14: FromRequestParts<S> + Send,
T15: FromRequest<S> + Send,
Fut: Future + Send + 'static,
<Fut as Future>::Output: IntoMapRequestResult<B> + Send + 'static,
I: Service<Request<B>, Error = Infallible> + Clone + Send + 'static,
<I as Service<Request<B>>>::Response: IntoResponse,
<I as Service<Request<B>>>::Future: Send + 'static,
B: Body<Data = Bytes> + Send + 'static,
<B as Body>::Error: Into<Box<dyn Error + Send + Sync>>,
S: Clone + Send + Sync + 'static,
§type Error = Infallible
type Error = Infallible
Errors produced by the service.
§type Future = ResponseFuture
type Future = ResponseFuture
The future response value.
§fn poll_ready(
&mut self,
cx: &mut Context<'_>,
) -> Poll<Result<(), <MapRequest<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15)> as Service<Request<B>>>::Error>>
fn poll_ready( &mut self, cx: &mut Context<'_>, ) -> Poll<Result<(), <MapRequest<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15)> as Service<Request<B>>>::Error>>
Returns
Poll::Ready(Ok(()))
when the service is able to process requests. Read more§fn call(
&mut self,
req: Request<B>,
) -> <MapRequest<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15)> as Service<Request<B>>>::Future
fn call( &mut self, req: Request<B>, ) -> <MapRequest<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15)> as Service<Request<B>>>::Future
Process the request and return the response asynchronously. Read more
§impl<F, Fut, S, I, B, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16> Service<Request<B>> for MapRequest<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16)>where
F: FnMut(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16) -> Fut + Clone + Send + 'static,
T1: FromRequestParts<S> + Send,
T2: FromRequestParts<S> + Send,
T3: FromRequestParts<S> + Send,
T4: FromRequestParts<S> + Send,
T5: FromRequestParts<S> + Send,
T6: FromRequestParts<S> + Send,
T7: FromRequestParts<S> + Send,
T8: FromRequestParts<S> + Send,
T9: FromRequestParts<S> + Send,
T10: FromRequestParts<S> + Send,
T11: FromRequestParts<S> + Send,
T12: FromRequestParts<S> + Send,
T13: FromRequestParts<S> + Send,
T14: FromRequestParts<S> + Send,
T15: FromRequestParts<S> + Send,
T16: FromRequest<S> + Send,
Fut: Future + Send + 'static,
<Fut as Future>::Output: IntoMapRequestResult<B> + Send + 'static,
I: Service<Request<B>, Error = Infallible> + Clone + Send + 'static,
<I as Service<Request<B>>>::Response: IntoResponse,
<I as Service<Request<B>>>::Future: Send + 'static,
B: Body<Data = Bytes> + Send + 'static,
<B as Body>::Error: Into<Box<dyn Error + Send + Sync>>,
S: Clone + Send + Sync + 'static,
impl<F, Fut, S, I, B, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16> Service<Request<B>> for MapRequest<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16)>where
F: FnMut(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16) -> Fut + Clone + Send + 'static,
T1: FromRequestParts<S> + Send,
T2: FromRequestParts<S> + Send,
T3: FromRequestParts<S> + Send,
T4: FromRequestParts<S> + Send,
T5: FromRequestParts<S> + Send,
T6: FromRequestParts<S> + Send,
T7: FromRequestParts<S> + Send,
T8: FromRequestParts<S> + Send,
T9: FromRequestParts<S> + Send,
T10: FromRequestParts<S> + Send,
T11: FromRequestParts<S> + Send,
T12: FromRequestParts<S> + Send,
T13: FromRequestParts<S> + Send,
T14: FromRequestParts<S> + Send,
T15: FromRequestParts<S> + Send,
T16: FromRequest<S> + Send,
Fut: Future + Send + 'static,
<Fut as Future>::Output: IntoMapRequestResult<B> + Send + 'static,
I: Service<Request<B>, Error = Infallible> + Clone + Send + 'static,
<I as Service<Request<B>>>::Response: IntoResponse,
<I as Service<Request<B>>>::Future: Send + 'static,
B: Body<Data = Bytes> + Send + 'static,
<B as Body>::Error: Into<Box<dyn Error + Send + Sync>>,
S: Clone + Send + Sync + 'static,
§type Error = Infallible
type Error = Infallible
Errors produced by the service.
§type Future = ResponseFuture
type Future = ResponseFuture
The future response value.
§fn poll_ready(
&mut self,
cx: &mut Context<'_>,
) -> Poll<Result<(), <MapRequest<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16)> as Service<Request<B>>>::Error>>
fn poll_ready( &mut self, cx: &mut Context<'_>, ) -> Poll<Result<(), <MapRequest<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16)> as Service<Request<B>>>::Error>>
Returns
Poll::Ready(Ok(()))
when the service is able to process requests. Read more§fn call(
&mut self,
req: Request<B>,
) -> <MapRequest<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16)> as Service<Request<B>>>::Future
fn call( &mut self, req: Request<B>, ) -> <MapRequest<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16)> as Service<Request<B>>>::Future
Process the request and return the response asynchronously. Read more
Auto Trait Implementations§
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> UnwindSafe for MapRequest<F, S, I, T>
Blanket Implementations§
Source§impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere
T: Real + Zero + Arithmetics + Clone,
Swp: WhitePoint<T>,
Dwp: WhitePoint<T>,
D: AdaptFrom<S, Swp, Dwp, T>,
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere
T: Real + Zero + Arithmetics + Clone,
Swp: WhitePoint<T>,
Dwp: WhitePoint<T>,
D: AdaptFrom<S, Swp, Dwp, T>,
Source§fn adapt_into_using<M>(self, method: M) -> Dwhere
M: TransformMatrix<T>,
fn adapt_into_using<M>(self, method: M) -> Dwhere
M: TransformMatrix<T>,
Convert the source color to the destination color using the specified
method.
Source§fn adapt_into(self) -> D
fn adapt_into(self) -> D
Convert the source color to the destination color using the bradford
method by default.
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
Source§impl<T, C> ArraysFrom<C> for Twhere
C: IntoArrays<T>,
impl<T, C> ArraysFrom<C> for Twhere
C: IntoArrays<T>,
Source§fn arrays_from(colors: C) -> T
fn arrays_from(colors: C) -> T
Cast a collection of colors into a collection of arrays.
Source§impl<T, C> ArraysInto<C> for Twhere
C: FromArrays<T>,
impl<T, C> ArraysInto<C> for Twhere
C: FromArrays<T>,
Source§fn arrays_into(self) -> C
fn arrays_into(self) -> C
Cast this collection of arrays into a collection of colors.
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<WpParam, T, U> Cam16IntoUnclamped<WpParam, T> for Uwhere
T: FromCam16Unclamped<WpParam, U>,
impl<WpParam, T, U> Cam16IntoUnclamped<WpParam, T> for Uwhere
T: FromCam16Unclamped<WpParam, U>,
Source§type Scalar = <T as FromCam16Unclamped<WpParam, U>>::Scalar
type Scalar = <T as FromCam16Unclamped<WpParam, U>>::Scalar
The number type that’s used in
parameters
when converting.Source§fn cam16_into_unclamped(
self,
parameters: BakedParameters<WpParam, <U as Cam16IntoUnclamped<WpParam, T>>::Scalar>,
) -> T
fn cam16_into_unclamped( self, parameters: BakedParameters<WpParam, <U as Cam16IntoUnclamped<WpParam, T>>::Scalar>, ) -> T
Converts
self
into C
, using the provided parameters.Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, C> ComponentsFrom<C> for Twhere
C: IntoComponents<T>,
impl<T, C> ComponentsFrom<C> for Twhere
C: IntoComponents<T>,
Source§fn components_from(colors: C) -> T
fn components_from(colors: C) -> T
Cast a collection of colors into a collection of color components.
§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
§fn deserialize(
&self,
deserializer: &mut D,
) -> Result<With<T, W>, <D as Fallible>::Error>
fn deserialize( &self, deserializer: &mut D, ) -> Result<With<T, W>, <D as Fallible>::Error>
Deserializes using the given deserializer
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
, which can then be
downcast
into Box<dyn ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
, which can then be further
downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<T> DowncastSend for T
impl<T> DowncastSend for T
§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> FromAngle<T> for T
impl<T> FromAngle<T> for T
Source§fn from_angle(angle: T) -> T
fn from_angle(angle: T) -> T
Performs a conversion from
angle
.Source§impl<T, U> FromStimulus<U> for Twhere
U: IntoStimulus<T>,
impl<T, U> FromStimulus<U> for Twhere
U: IntoStimulus<T>,
Source§fn from_stimulus(other: U) -> T
fn from_stimulus(other: U) -> T
Converts
other
into Self
, while performing the appropriate scaling,
rounding and clamping.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T, U> IntoAngle<U> for Twhere
U: FromAngle<T>,
impl<T, U> IntoAngle<U> for Twhere
U: FromAngle<T>,
Source§fn into_angle(self) -> U
fn into_angle(self) -> U
Performs a conversion into
T
.Source§impl<WpParam, T, U> IntoCam16Unclamped<WpParam, T> for Uwhere
T: Cam16FromUnclamped<WpParam, U>,
impl<WpParam, T, U> IntoCam16Unclamped<WpParam, T> for Uwhere
T: Cam16FromUnclamped<WpParam, U>,
Source§type Scalar = <T as Cam16FromUnclamped<WpParam, U>>::Scalar
type Scalar = <T as Cam16FromUnclamped<WpParam, U>>::Scalar
The number type that’s used in
parameters
when converting.Source§fn into_cam16_unclamped(
self,
parameters: BakedParameters<WpParam, <U as IntoCam16Unclamped<WpParam, T>>::Scalar>,
) -> T
fn into_cam16_unclamped( self, parameters: BakedParameters<WpParam, <U as IntoCam16Unclamped<WpParam, T>>::Scalar>, ) -> T
Converts
self
into C
, using the provided parameters.Source§impl<T, U> IntoColor<U> for Twhere
U: FromColor<T>,
impl<T, U> IntoColor<U> for Twhere
U: FromColor<T>,
Source§fn into_color(self) -> U
fn into_color(self) -> U
Convert into T with values clamped to the color defined bounds Read more
Source§impl<T, U> IntoColorUnclamped<U> for Twhere
U: FromColorUnclamped<T>,
impl<T, U> IntoColorUnclamped<U> for Twhere
U: FromColorUnclamped<T>,
Source§fn into_color_unclamped(self) -> U
fn into_color_unclamped(self) -> U
Convert into T. The resulting color might be invalid in its color space Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoStimulus<T> for T
impl<T> IntoStimulus<T> for T
Source§fn into_stimulus(self) -> T
fn into_stimulus(self) -> T
Converts
self
into T
, while performing the appropriate scaling,
rounding and clamping.§impl<M, S, Target, Request> MakeService<Target, Request> for Mwhere
M: Service<Target, Response = S>,
S: Service<Request>,
impl<M, S, Target, Request> MakeService<Target, Request> for Mwhere
M: Service<Target, Response = S>,
S: Service<Request>,
§fn poll_ready(
&mut self,
cx: &mut Context<'_>,
) -> Poll<Result<(), <M as MakeService<Target, Request>>::MakeError>>
fn poll_ready( &mut self, cx: &mut Context<'_>, ) -> Poll<Result<(), <M as MakeService<Target, Request>>::MakeError>>
Returns
Poll::Ready
when the factory is able to create more services. Read more§fn make_service(
&mut self,
target: Target,
) -> <M as MakeService<Target, Request>>::Future
fn make_service( &mut self, target: Target, ) -> <M as MakeService<Target, Request>>::Future
Create and return a new service value asynchronously.
§fn into_service(self) -> IntoService<Self, Request>where
Self: Sized,
fn into_service(self) -> IntoService<Self, Request>where
Self: Sized,
§fn as_service(&mut self) -> AsService<'_, Self, Request>where
Self: Sized,
fn as_service(&mut self) -> AsService<'_, Self, Request>where
Self: Sized,
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> Pointee for T
impl<T> Pointee for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> SerializableKey for T
impl<T> SerializableKey for T
§impl<S, R> ServiceExt<R> for Swhere
S: Service<R>,
impl<S, R> ServiceExt<R> for Swhere
S: Service<R>,
§fn into_make_service(self) -> IntoMakeService<S>
fn into_make_service(self) -> IntoMakeService<S>
Convert this service into a
MakeService
, that is a [Service
] whose
response is another service. Read more§fn into_make_service_with_connect_info<C>(
self,
) -> IntoMakeServiceWithConnectInfo<S, C>
fn into_make_service_with_connect_info<C>( self, ) -> IntoMakeServiceWithConnectInfo<S, C>
Convert this service into a
MakeService
, that will store C
’s
associated ConnectInfo
in a request extension such that ConnectInfo
can extract it. Read more§fn handle_error<F, T>(self, f: F) -> HandleError<Self, F, T>
fn handle_error<F, T>(self, f: F) -> HandleError<Self, F, T>
Convert this service into a
HandleError
, that will handle errors
by converting them into responses. Read more§impl<T, Request> ServiceExt<Request> for Twhere
T: Service<Request> + ?Sized,
impl<T, Request> ServiceExt<Request> for Twhere
T: Service<Request> + ?Sized,
§fn ready(&mut self) -> Ready<'_, Self, Request> ⓘwhere
Self: Sized,
fn ready(&mut self) -> Ready<'_, Self, Request> ⓘwhere
Self: Sized,
Yields a mutable reference to the service when it is ready to accept a request.
§fn ready_oneshot(self) -> ReadyOneshot<Self, Request> ⓘwhere
Self: Sized,
fn ready_oneshot(self) -> ReadyOneshot<Self, Request> ⓘwhere
Self: Sized,
Yields the service when it is ready to accept a request.
§fn oneshot(self, req: Request) -> Oneshot<Self, Request> ⓘwhere
Self: Sized,
fn oneshot(self, req: Request) -> Oneshot<Self, Request> ⓘwhere
Self: Sized,
Consume this
Service
, calling it with the provided request once it is ready.§fn and_then<F>(self, f: F) -> AndThen<Self, F>
fn and_then<F>(self, f: F) -> AndThen<Self, F>
Executes a new future after this service’s future resolves. This does
not alter the behaviour of the
poll_ready
method. Read more§fn map_response<F, Response>(self, f: F) -> MapResponse<Self, F>
fn map_response<F, Response>(self, f: F) -> MapResponse<Self, F>
Maps this service’s response value to a different value. This does not
alter the behaviour of the
poll_ready
method. Read more§fn map_err<F, Error>(self, f: F) -> MapErr<Self, F>
fn map_err<F, Error>(self, f: F) -> MapErr<Self, F>
Maps this service’s error value to a different value. This does not
alter the behaviour of the
poll_ready
method. Read more§fn map_result<F, Response, Error>(self, f: F) -> MapResult<Self, F>
fn map_result<F, Response, Error>(self, f: F) -> MapResult<Self, F>
Maps this service’s result type (
Result<Self::Response, Self::Error>
)
to a different value, regardless of whether the future succeeds or
fails. Read more§fn map_request<F, NewRequest>(self, f: F) -> MapRequest<Self, F>
fn map_request<F, NewRequest>(self, f: F) -> MapRequest<Self, F>
Composes a function in front of the service. Read more
§fn then<F, Response, Error, Fut>(self, f: F) -> Then<Self, F>
fn then<F, Response, Error, Fut>(self, f: F) -> Then<Self, F>
Composes an asynchronous function after this service. Read more
§fn map_future<F, Fut, Response, Error>(self, f: F) -> MapFuture<Self, F>
fn map_future<F, Fut, Response, Error>(self, f: F) -> MapFuture<Self, F>
Composes a function that transforms futures produced by the service. Read more
§impl<T> StorageAccess<T> for T
impl<T> StorageAccess<T> for T
§fn as_borrowed(&self) -> &T
fn as_borrowed(&self) -> &T
Borrows the value.
§fn into_taken(self) -> T
fn into_taken(self) -> T
Takes the value.
Source§impl<T, C> TryComponentsInto<C> for Twhere
C: TryFromComponents<T>,
impl<T, C> TryComponentsInto<C> for Twhere
C: TryFromComponents<T>,
Source§type Error = <C as TryFromComponents<T>>::Error
type Error = <C as TryFromComponents<T>>::Error
The error for when
try_into_colors
fails to cast.Source§fn try_components_into(self) -> Result<C, <T as TryComponentsInto<C>>::Error>
fn try_components_into(self) -> Result<C, <T as TryComponentsInto<C>>::Error>
Try to cast this collection of color components into a collection of
colors. Read more
Source§impl<T, U> TryIntoColor<U> for Twhere
U: TryFromColor<T>,
impl<T, U> TryIntoColor<U> for Twhere
U: TryFromColor<T>,
Source§fn try_into_color(self) -> Result<U, OutOfBounds<U>>
fn try_into_color(self) -> Result<U, OutOfBounds<U>>
Convert into T, returning ok if the color is inside of its defined
range, otherwise an
OutOfBounds
error is returned which contains
the unclamped color. Read moreSource§impl<C, U> UintsFrom<C> for Uwhere
C: IntoUints<U>,
impl<C, U> UintsFrom<C> for Uwhere
C: IntoUints<U>,
Source§fn uints_from(colors: C) -> U
fn uints_from(colors: C) -> U
Cast a collection of colors into a collection of unsigned integers.
Source§impl<C, U> UintsInto<C> for Uwhere
C: FromUints<U>,
impl<C, U> UintsInto<C> for Uwhere
C: FromUints<U>,
Source§fn uints_into(self) -> C
fn uints_into(self) -> C
Cast this collection of unsigned integers into a collection of colors.