Struct Request
pub struct Request<T> {
head: Parts,
body: T,
}
Expand description
Represents an HTTP request.
An HTTP request consists of a head and a potentially optional body. The body
component is generic, enabling arbitrary types to represent the HTTP body.
For example, the body could be Vec<u8>
, a Stream
of byte chunks, or a
value that has been deserialized.
ยงExamples
Creating a Request
to send
use http::{Request, Response};
let mut request = Request::builder()
.uri("https://www.rust-lang.org/")
.header("User-Agent", "my-awesome-agent/1.0");
if needs_awesome_header() {
request = request.header("Awesome", "yes");
}
let response = send(request.body(()).unwrap());
fn send(req: Request<()>) -> Response<()> {
// ...
}
Inspecting a request to see what was sent.
use http::{Request, Response, StatusCode};
fn respond_to(req: Request<()>) -> http::Result<Response<()>> {
if req.uri() != "/awesome-url" {
return Response::builder()
.status(StatusCode::NOT_FOUND)
.body(())
}
let has_awesome_header = req.headers().contains_key("Awesome");
let body = req.body();
// ...
}
Deserialize a request of bytes via json:
use http::Request;
use serde::de;
fn deserialize<T>(req: Request<Vec<u8>>) -> serde_json::Result<Request<T>>
where for<'de> T: de::Deserialize<'de>,
{
let (parts, body) = req.into_parts();
let body = serde_json::from_slice(&body)?;
Ok(Request::from_parts(parts, body))
}
Or alternatively, serialize the body of a request to json
use http::Request;
use serde::ser;
fn serialize<T>(req: Request<T>) -> serde_json::Result<Request<Vec<u8>>>
where T: ser::Serialize,
{
let (parts, body) = req.into_parts();
let body = serde_json::to_vec(&body)?;
Ok(Request::from_parts(parts, body))
}
Fieldsยง
ยงhead: Parts
ยงbody: T
Implementationsยง
ยงimpl Request<()>
impl Request<()>
pub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture a Request
This method returns an instance of Builder
which can be used to
create a Request
.
ยงExamples
let request = Request::builder()
.method("GET")
.uri("https://www.rust-lang.org/")
.header("X-Custom-Foo", "Bar")
.body(())
.unwrap();
pub fn get<T>(uri: T) -> Builder
pub fn get<T>(uri: T) -> Builder
Creates a new Builder
initialized with a GET method and the given URI.
This method returns an instance of Builder
which can be used to
create a Request
.
ยงExample
let request = Request::get("https://www.rust-lang.org/")
.body(())
.unwrap();
pub fn put<T>(uri: T) -> Builder
pub fn put<T>(uri: T) -> Builder
Creates a new Builder
initialized with a PUT method and the given URI.
This method returns an instance of Builder
which can be used to
create a Request
.
ยงExample
let request = Request::put("https://www.rust-lang.org/")
.body(())
.unwrap();
pub fn post<T>(uri: T) -> Builder
pub fn post<T>(uri: T) -> Builder
Creates a new Builder
initialized with a POST method and the given URI.
This method returns an instance of Builder
which can be used to
create a Request
.
ยงExample
let request = Request::post("https://www.rust-lang.org/")
.body(())
.unwrap();
pub fn delete<T>(uri: T) -> Builder
pub fn delete<T>(uri: T) -> Builder
Creates a new Builder
initialized with a DELETE method and the given URI.
This method returns an instance of Builder
which can be used to
create a Request
.
ยงExample
let request = Request::delete("https://www.rust-lang.org/")
.body(())
.unwrap();
pub fn options<T>(uri: T) -> Builder
pub fn options<T>(uri: T) -> Builder
Creates a new Builder
initialized with an OPTIONS method and the given URI.
This method returns an instance of Builder
which can be used to
create a Request
.
ยงExample
let request = Request::options("https://www.rust-lang.org/")
.body(())
.unwrap();
pub fn head<T>(uri: T) -> Builder
pub fn head<T>(uri: T) -> Builder
Creates a new Builder
initialized with a HEAD method and the given URI.
This method returns an instance of Builder
which can be used to
create a Request
.
ยงExample
let request = Request::head("https://www.rust-lang.org/")
.body(())
.unwrap();
pub fn connect<T>(uri: T) -> Builder
pub fn connect<T>(uri: T) -> Builder
Creates a new Builder
initialized with a CONNECT method and the given URI.
This method returns an instance of Builder
which can be used to
create a Request
.
ยงExample
let request = Request::connect("https://www.rust-lang.org/")
.body(())
.unwrap();
pub fn patch<T>(uri: T) -> Builder
pub fn patch<T>(uri: T) -> Builder
Creates a new Builder
initialized with a PATCH method and the given URI.
This method returns an instance of Builder
which can be used to
create a Request
.
ยงExample
let request = Request::patch("https://www.rust-lang.org/")
.body(())
.unwrap();
ยงimpl<T> Request<T>
impl<T> Request<T>
pub fn new(body: T) -> Request<T>
pub fn new(body: T) -> Request<T>
Creates a new blank Request
with the body
The component parts of this request will be set to their default, e.g. the GET method, no headers, etc.
ยงExamples
let request = Request::new("hello world");
assert_eq!(*request.method(), Method::GET);
assert_eq!(*request.body(), "hello world");
pub fn from_parts(parts: Parts, body: T) -> Request<T>
pub fn from_parts(parts: Parts, body: T) -> Request<T>
Creates a new Request
with the given components parts and body.
ยงExamples
let request = Request::new("hello world");
let (mut parts, body) = request.into_parts();
parts.method = Method::POST;
let request = Request::from_parts(parts, body);
pub fn method(&self) -> &Method
pub fn method(&self) -> &Method
Returns a reference to the associated HTTP method.
ยงExamples
let request: Request<()> = Request::default();
assert_eq!(*request.method(), Method::GET);
pub fn method_mut(&mut self) -> &mut Method
pub fn method_mut(&mut self) -> &mut Method
Returns a mutable reference to the associated HTTP method.
ยงExamples
let mut request: Request<()> = Request::default();
*request.method_mut() = Method::PUT;
assert_eq!(*request.method(), Method::PUT);
pub fn uri(&self) -> &Uri
pub fn uri(&self) -> &Uri
Returns a reference to the associated URI.
ยงExamples
let request: Request<()> = Request::default();
assert_eq!(*request.uri(), *"/");
pub fn uri_mut(&mut self) -> &mut Uri
pub fn uri_mut(&mut self) -> &mut Uri
Returns a mutable reference to the associated URI.
ยงExamples
let mut request: Request<()> = Request::default();
*request.uri_mut() = "/hello".parse().unwrap();
assert_eq!(*request.uri(), *"/hello");
pub fn version(&self) -> Version
pub fn version(&self) -> Version
Returns the associated version.
ยงExamples
let request: Request<()> = Request::default();
assert_eq!(request.version(), Version::HTTP_11);
pub fn version_mut(&mut self) -> &mut Version
pub fn version_mut(&mut self) -> &mut Version
Returns a mutable reference to the associated version.
ยงExamples
let mut request: Request<()> = Request::default();
*request.version_mut() = Version::HTTP_2;
assert_eq!(request.version(), Version::HTTP_2);
pub fn headers(&self) -> &HeaderMap
pub fn headers(&self) -> &HeaderMap
Returns a reference to the associated header field map.
ยงExamples
let request: Request<()> = Request::default();
assert!(request.headers().is_empty());
pub fn headers_mut(&mut self) -> &mut HeaderMap
pub fn headers_mut(&mut self) -> &mut HeaderMap
Returns a mutable reference to the associated header field map.
ยงExamples
let mut request: Request<()> = Request::default();
request.headers_mut().insert(HOST, HeaderValue::from_static("world"));
assert!(!request.headers().is_empty());
pub fn extensions(&self) -> &Extensions
pub fn extensions(&self) -> &Extensions
Returns a reference to the associated extensions.
ยงExamples
let request: Request<()> = Request::default();
assert!(request.extensions().get::<i32>().is_none());
pub fn extensions_mut(&mut self) -> &mut Extensions
pub fn extensions_mut(&mut self) -> &mut Extensions
Returns a mutable reference to the associated extensions.
ยงExamples
let mut request: Request<()> = Request::default();
request.extensions_mut().insert("hello");
assert_eq!(request.extensions().get(), Some(&"hello"));
pub fn body(&self) -> &T
pub fn body(&self) -> &T
Returns a reference to the associated HTTP body.
ยงExamples
let request: Request<String> = Request::default();
assert!(request.body().is_empty());
pub fn body_mut(&mut self) -> &mut T
pub fn body_mut(&mut self) -> &mut T
Returns a mutable reference to the associated HTTP body.
ยงExamples
let mut request: Request<String> = Request::default();
request.body_mut().push_str("hello world");
assert!(!request.body().is_empty());
pub fn into_body(self) -> T
pub fn into_body(self) -> T
Consumes the request, returning just the body.
ยงExamples
let request = Request::new(10);
let body = request.into_body();
assert_eq!(body, 10);
pub fn into_parts(self) -> (Parts, T)
pub fn into_parts(self) -> (Parts, T)
Consumes the request returning the head and body parts.
ยงExamples
let request = Request::new(());
let (parts, body) = request.into_parts();
assert_eq!(parts.method, Method::GET);
pub fn map<F, U>(self, f: F) -> Request<U>where
F: FnOnce(T) -> U,
pub fn map<F, U>(self, f: F) -> Request<U>where
F: FnOnce(T) -> U,
Consumes the request returning a new request with body mapped to the return type of the passed in function.
ยงExamples
let request = Request::builder().body("some string").unwrap();
let mapped_request: Request<&[u8]> = request.map(|b| {
assert_eq!(b, "some string");
b.as_bytes()
});
assert_eq!(mapped_request.body(), &"some string".as_bytes());
Trait Implementationsยง
ยงimpl<S> FromRequest<S> for Request<Body>
impl<S> FromRequest<S> for Request<Body>
ยงtype Rejection = Infallible
type Rejection = Infallible
ยงimpl<B> Body for Request<B>where
B: Body,
impl<B> Body for Request<B>where
B: Body,
ยงfn poll_frame(
self: Pin<&mut Request<B>>,
cx: &mut Context<'_>,
) -> Poll<Option<Result<Frame<<Request<B> as Body>::Data>, <Request<B> as Body>::Error>>>
fn poll_frame( self: Pin<&mut Request<B>>, cx: &mut Context<'_>, ) -> Poll<Option<Result<Frame<<Request<B> as Body>::Data>, <Request<B> as Body>::Error>>>
ยงfn is_end_stream(&self) -> bool
fn is_end_stream(&self) -> bool
true
when the end of stream has been reached. Read moreยงimpl IntoClientRequest for Request<()>
impl IntoClientRequest for Request<()>
ยงfn into_client_request(self) -> Result<Request<()>, Error>
fn into_client_request(self) -> Result<Request<()>, Error>
Request
that can be used for a client connection.ยงimpl<B> IntoMapRequestResult<B> for Request<B>
impl<B> IntoMapRequestResult<B> for Request<B>
ยงimpl<Error, InputStreamError, OutputStreamError> Req<Error, InputStreamError, OutputStreamError> for Request<Body>where
Error: FromServerFnError + Send,
InputStreamError: FromServerFnError + Send,
OutputStreamError: FromServerFnError + Send,
impl<Error, InputStreamError, OutputStreamError> Req<Error, InputStreamError, OutputStreamError> for Request<Body>where
Error: FromServerFnError + Send,
InputStreamError: FromServerFnError + Send,
OutputStreamError: FromServerFnError + Send,
ยงtype WebsocketResponse = Response<Body>
type WebsocketResponse = Response<Body>
ยงfn as_query(&self) -> Option<&str>
fn as_query(&self) -> Option<&str>
?
.ยงfn to_content_type(&self) -> Option<Cow<'_, str>>
fn to_content_type(&self) -> Option<Cow<'_, str>>
Content-Type
header, if any.ยงasync fn try_into_bytes(self) -> Result<Bytes, Error>
async fn try_into_bytes(self) -> Result<Bytes, Error>
Bytes
.ยงasync fn try_into_string(self) -> Result<String, Error>
async fn try_into_string(self) -> Result<String, Error>
ยงfn try_into_stream(
self,
) -> Result<impl Stream<Item = Result<Bytes, Bytes>> + Send + 'static, Error>
fn try_into_stream( self, ) -> Result<impl Stream<Item = Result<Bytes, Bytes>> + Send + 'static, Error>
ยงasync fn try_into_websocket(
self,
) -> Result<(impl Stream<Item = Result<Bytes, Bytes>> + Send + 'static, impl Sink<Bytes> + Send + 'static, <Request<Body> as Req<Error, InputStreamError, OutputStreamError>>::WebsocketResponse), Error>
async fn try_into_websocket( self, ) -> Result<(impl Stream<Item = Result<Bytes, Bytes>> + Send + 'static, impl Sink<Bytes> + Send + 'static, <Request<Body> as Req<Error, InputStreamError, OutputStreamError>>::WebsocketResponse), Error>
ยงimpl<Error, InputStreamError, OutputStreamError> Req<Error, InputStreamError, OutputStreamError> for Request<Bytes>where
Error: FromServerFnError + Send,
InputStreamError: FromServerFnError + Send,
OutputStreamError: FromServerFnError + Send,
impl<Error, InputStreamError, OutputStreamError> Req<Error, InputStreamError, OutputStreamError> for Request<Bytes>where
Error: FromServerFnError + Send,
InputStreamError: FromServerFnError + Send,
OutputStreamError: FromServerFnError + Send,
ยงtype WebsocketResponse = Response<Bytes>
type WebsocketResponse = Response<Bytes>
ยงasync fn try_into_bytes(self) -> Result<Bytes, Error>
async fn try_into_bytes(self) -> Result<Bytes, Error>
Bytes
.ยงasync fn try_into_string(self) -> Result<String, Error>
async fn try_into_string(self) -> Result<String, Error>
ยงfn try_into_stream(
self,
) -> Result<impl Stream<Item = Result<Bytes, Bytes>> + Send + 'static, Error>
fn try_into_stream( self, ) -> Result<impl Stream<Item = Result<Bytes, Bytes>> + Send + 'static, Error>
ยงfn to_content_type(&self) -> Option<Cow<'_, str>>
fn to_content_type(&self) -> Option<Cow<'_, str>>
Content-Type
header, if any.ยงfn as_query(&self) -> Option<&str>
fn as_query(&self) -> Option<&str>
?
.ยงasync fn try_into_websocket(
self,
) -> Result<(impl Stream<Item = Result<Bytes, Bytes>> + Send + 'static, impl Sink<Bytes> + Send + 'static, <Request<Bytes> as Req<Error, InputStreamError, OutputStreamError>>::WebsocketResponse), Error>
async fn try_into_websocket( self, ) -> Result<(impl Stream<Item = Result<Bytes, Bytes>> + Send + 'static, impl Sink<Bytes> + Send + 'static, <Request<Bytes> as Req<Error, InputStreamError, OutputStreamError>>::WebsocketResponse), Error>
ยงimpl RequestExt for Request<Body>
impl RequestExt for Request<Body>
ยงfn extract<E, M>(
self,
) -> impl Future<Output = Result<E, <E as FromRequest<(), M>>::Rejection>> + Sendwhere
E: FromRequest<(), M> + 'static,
M: 'static,
fn extract<E, M>(
self,
) -> impl Future<Output = Result<E, <E as FromRequest<(), M>>::Rejection>> + Sendwhere
E: FromRequest<(), M> + 'static,
M: 'static,
Request
. Read moreยงfn extract_with_state<E, S, M>(
self,
state: &S,
) -> impl Future<Output = Result<E, <E as FromRequest<S, M>>::Rejection>> + Send
fn extract_with_state<E, S, M>( self, state: &S, ) -> impl Future<Output = Result<E, <E as FromRequest<S, M>>::Rejection>> + Send
Request
. Read moreยงfn extract_parts<E>(
&mut self,
) -> impl Future<Output = Result<E, <E as FromRequestParts<()>>::Rejection>> + Sendwhere
E: FromRequestParts<()> + 'static,
fn extract_parts<E>(
&mut self,
) -> impl Future<Output = Result<E, <E as FromRequestParts<()>>::Rejection>> + Sendwhere
E: FromRequestParts<()> + 'static,
Request
. Read moreยงasync fn extract_parts_with_state<'a, E, S>(
&'a mut self,
state: &'a S,
) -> Result<E, <E as FromRequestParts<S>>::Rejection>
async fn extract_parts_with_state<'a, E, S>( &'a mut self, state: &'a S, ) -> Result<E, <E as FromRequestParts<S>>::Rejection>
Request
. Read moreยงfn with_limited_body(self) -> Request<Body>
fn with_limited_body(self) -> Request<Body>
ยงfn into_limited_body(self) -> Body
fn into_limited_body(self) -> Body
http_body_util::Limited
] if a
default limit is in place, or not wrapped if the
default limit is disabled.ยงimpl<T, E, B, S> Service<Request<B>> for FromExtractor<T, E, S>where
E: FromRequestParts<S> + 'static,
B: Send + 'static,
T: Service<Request<B>> + Clone,
<T as Service<Request<B>>>::Response: IntoResponse,
S: Clone + Send + Sync + 'static,
impl<T, E, B, S> Service<Request<B>> for FromExtractor<T, E, S>where
E: FromRequestParts<S> + 'static,
B: Send + 'static,
T: Service<Request<B>> + Clone,
<T as Service<Request<B>>>::Response: IntoResponse,
S: Clone + Send + Sync + 'static,
ยงtype Future = ResponseFuture<B, T, E, S>
type Future = ResponseFuture<B, T, E, S>
ยงfn poll_ready(
&mut self,
cx: &mut Context<'_>,
) -> Poll<Result<(), <FromExtractor<T, E, S> as Service<Request<B>>>::Error>>
fn poll_ready( &mut self, cx: &mut Context<'_>, ) -> Poll<Result<(), <FromExtractor<T, E, S> as Service<Request<B>>>::Error>>
Poll::Ready(Ok(()))
when the service is able to process requests. Read moreยงimpl<S, F, B, Fut, Res> Service<Request<B>> for HandleError<S, F, ()>where
S: Service<Request<B>> + Clone + Send + 'static,
<S as Service<Request<B>>>::Response: IntoResponse + Send,
<S as Service<Request<B>>>::Error: Send,
<S as Service<Request<B>>>::Future: Send,
F: FnOnce(<S as Service<Request<B>>>::Error) -> Fut + Clone + Send + 'static,
Fut: Future<Output = Res> + Send,
Res: IntoResponse,
B: Send + 'static,
impl<S, F, B, Fut, Res> Service<Request<B>> for HandleError<S, F, ()>where
S: Service<Request<B>> + Clone + Send + 'static,
<S as Service<Request<B>>>::Response: IntoResponse + Send,
<S as Service<Request<B>>>::Error: Send,
<S as Service<Request<B>>>::Future: Send,
F: FnOnce(<S as Service<Request<B>>>::Error) -> Fut + Clone + Send + 'static,
Fut: Future<Output = Res> + Send,
Res: IntoResponse,
B: Send + 'static,
ยงtype Error = Infallible
type Error = Infallible
ยงtype Future = HandleErrorFuture
type Future = HandleErrorFuture
ยงfn poll_ready(
&mut self,
_: &mut Context<'_>,
) -> Poll<Result<(), <HandleError<S, F, ()> as Service<Request<B>>>::Error>>
fn poll_ready( &mut self, _: &mut Context<'_>, ) -> Poll<Result<(), <HandleError<S, F, ()> as Service<Request<B>>>::Error>>
Poll::Ready(Ok(()))
when the service is able to process requests. Read moreยงimpl<S, F, B, Res, Fut, T1> Service<Request<B>> for HandleError<S, F, (T1,)>where
S: Service<Request<B>> + Clone + Send + 'static,
<S as Service<Request<B>>>::Response: IntoResponse + Send,
<S as Service<Request<B>>>::Error: Send,
<S as Service<Request<B>>>::Future: Send,
F: FnOnce(T1, <S as Service<Request<B>>>::Error) -> Fut + Clone + Send + 'static,
Fut: Future<Output = Res> + Send,
Res: IntoResponse,
T1: FromRequestParts<()> + Send,
B: Send + 'static,
impl<S, F, B, Res, Fut, T1> Service<Request<B>> for HandleError<S, F, (T1,)>where
S: Service<Request<B>> + Clone + Send + 'static,
<S as Service<Request<B>>>::Response: IntoResponse + Send,
<S as Service<Request<B>>>::Error: Send,
<S as Service<Request<B>>>::Future: Send,
F: FnOnce(T1, <S as Service<Request<B>>>::Error) -> Fut + Clone + Send + 'static,
Fut: Future<Output = Res> + Send,
Res: IntoResponse,
T1: FromRequestParts<()> + Send,
B: Send + 'static,
ยงtype Error = Infallible
type Error = Infallible
ยงtype Future = HandleErrorFuture
type Future = HandleErrorFuture
ยงfn poll_ready(
&mut self,
_: &mut Context<'_>,
) -> Poll<Result<(), <HandleError<S, F, (T1,)> as Service<Request<B>>>::Error>>
fn poll_ready( &mut self, _: &mut Context<'_>, ) -> Poll<Result<(), <HandleError<S, F, (T1,)> as Service<Request<B>>>::Error>>
Poll::Ready(Ok(()))
when the service is able to process requests. Read moreยงimpl<S, F, B, Res, Fut, T1, T2> Service<Request<B>> for HandleError<S, F, (T1, T2)>where
S: Service<Request<B>> + Clone + Send + 'static,
<S as Service<Request<B>>>::Response: IntoResponse + Send,
<S as Service<Request<B>>>::Error: Send,
<S as Service<Request<B>>>::Future: Send,
F: FnOnce(T1, T2, <S as Service<Request<B>>>::Error) -> Fut + Clone + Send + 'static,
Fut: Future<Output = Res> + Send,
Res: IntoResponse,
T1: FromRequestParts<()> + Send,
T2: FromRequestParts<()> + Send,
B: Send + 'static,
impl<S, F, B, Res, Fut, T1, T2> Service<Request<B>> for HandleError<S, F, (T1, T2)>where
S: Service<Request<B>> + Clone + Send + 'static,
<S as Service<Request<B>>>::Response: IntoResponse + Send,
<S as Service<Request<B>>>::Error: Send,
<S as Service<Request<B>>>::Future: Send,
F: FnOnce(T1, T2, <S as Service<Request<B>>>::Error) -> Fut + Clone + Send + 'static,
Fut: Future<Output = Res> + Send,
Res: IntoResponse,
T1: FromRequestParts<()> + Send,
T2: FromRequestParts<()> + Send,
B: Send + 'static,
ยงtype Error = Infallible
type Error = Infallible
ยงtype Future = HandleErrorFuture
type Future = HandleErrorFuture
ยงfn poll_ready(
&mut self,
_: &mut Context<'_>,
) -> Poll<Result<(), <HandleError<S, F, (T1, T2)> as Service<Request<B>>>::Error>>
fn poll_ready( &mut self, _: &mut Context<'_>, ) -> Poll<Result<(), <HandleError<S, F, (T1, T2)> as Service<Request<B>>>::Error>>
Poll::Ready(Ok(()))
when the service is able to process requests. Read moreยงimpl<S, F, B, Res, Fut, T1, T2, T3> Service<Request<B>> for HandleError<S, F, (T1, T2, T3)>where
S: Service<Request<B>> + Clone + Send + 'static,
<S as Service<Request<B>>>::Response: IntoResponse + Send,
<S as Service<Request<B>>>::Error: Send,
<S as Service<Request<B>>>::Future: Send,
F: FnOnce(T1, T2, T3, <S as Service<Request<B>>>::Error) -> Fut + Clone + Send + 'static,
Fut: Future<Output = Res> + Send,
Res: IntoResponse,
T1: FromRequestParts<()> + Send,
T2: FromRequestParts<()> + Send,
T3: FromRequestParts<()> + Send,
B: Send + 'static,
impl<S, F, B, Res, Fut, T1, T2, T3> Service<Request<B>> for HandleError<S, F, (T1, T2, T3)>where
S: Service<Request<B>> + Clone + Send + 'static,
<S as Service<Request<B>>>::Response: IntoResponse + Send,
<S as Service<Request<B>>>::Error: Send,
<S as Service<Request<B>>>::Future: Send,
F: FnOnce(T1, T2, T3, <S as Service<Request<B>>>::Error) -> Fut + Clone + Send + 'static,
Fut: Future<Output = Res> + Send,
Res: IntoResponse,
T1: FromRequestParts<()> + Send,
T2: FromRequestParts<()> + Send,
T3: FromRequestParts<()> + Send,
B: Send + 'static,
ยงtype Error = Infallible
type Error = Infallible
ยงtype Future = HandleErrorFuture
type Future = HandleErrorFuture
ยงfn poll_ready(
&mut self,
_: &mut Context<'_>,
) -> Poll<Result<(), <HandleError<S, F, (T1, T2, T3)> as Service<Request<B>>>::Error>>
fn poll_ready( &mut self, _: &mut Context<'_>, ) -> Poll<Result<(), <HandleError<S, F, (T1, T2, T3)> as Service<Request<B>>>::Error>>
Poll::Ready(Ok(()))
when the service is able to process requests. Read moreยงfn call(
&mut self,
req: Request<B>,
) -> <HandleError<S, F, (T1, T2, T3)> as Service<Request<B>>>::Future
fn call( &mut self, req: Request<B>, ) -> <HandleError<S, F, (T1, T2, T3)> as Service<Request<B>>>::Future
ยงimpl<S, F, B, Res, Fut, T1, T2, T3, T4> Service<Request<B>> for HandleError<S, F, (T1, T2, T3, T4)>where
S: Service<Request<B>> + Clone + Send + 'static,
<S as Service<Request<B>>>::Response: IntoResponse + Send,
<S as Service<Request<B>>>::Error: Send,
<S as Service<Request<B>>>::Future: Send,
F: FnOnce(T1, T2, T3, T4, <S as Service<Request<B>>>::Error) -> Fut + Clone + Send + 'static,
Fut: Future<Output = Res> + Send,
Res: IntoResponse,
T1: FromRequestParts<()> + Send,
T2: FromRequestParts<()> + Send,
T3: FromRequestParts<()> + Send,
T4: FromRequestParts<()> + Send,
B: Send + 'static,
impl<S, F, B, Res, Fut, T1, T2, T3, T4> Service<Request<B>> for HandleError<S, F, (T1, T2, T3, T4)>where
S: Service<Request<B>> + Clone + Send + 'static,
<S as Service<Request<B>>>::Response: IntoResponse + Send,
<S as Service<Request<B>>>::Error: Send,
<S as Service<Request<B>>>::Future: Send,
F: FnOnce(T1, T2, T3, T4, <S as Service<Request<B>>>::Error) -> Fut + Clone + Send + 'static,
Fut: Future<Output = Res> + Send,
Res: IntoResponse,
T1: FromRequestParts<()> + Send,
T2: FromRequestParts<()> + Send,
T3: FromRequestParts<()> + Send,
T4: FromRequestParts<()> + Send,
B: Send + 'static,
ยงtype Error = Infallible
type Error = Infallible
ยงtype Future = HandleErrorFuture
type Future = HandleErrorFuture
ยงfn poll_ready(
&mut self,
_: &mut Context<'_>,
) -> Poll<Result<(), <HandleError<S, F, (T1, T2, T3, T4)> as Service<Request<B>>>::Error>>
fn poll_ready( &mut self, _: &mut Context<'_>, ) -> Poll<Result<(), <HandleError<S, F, (T1, T2, T3, T4)> as Service<Request<B>>>::Error>>
Poll::Ready(Ok(()))
when the service is able to process requests. Read moreยงfn call(
&mut self,
req: Request<B>,
) -> <HandleError<S, F, (T1, T2, T3, T4)> as Service<Request<B>>>::Future
fn call( &mut self, req: Request<B>, ) -> <HandleError<S, F, (T1, T2, T3, T4)> as Service<Request<B>>>::Future
ยงimpl<S, F, B, Res, Fut, T1, T2, T3, T4, T5> Service<Request<B>> for HandleError<S, F, (T1, T2, T3, T4, T5)>where
S: Service<Request<B>> + Clone + Send + 'static,
<S as Service<Request<B>>>::Response: IntoResponse + Send,
<S as Service<Request<B>>>::Error: Send,
<S as Service<Request<B>>>::Future: Send,
F: FnOnce(T1, T2, T3, T4, T5, <S as Service<Request<B>>>::Error) -> Fut + Clone + Send + 'static,
Fut: Future<Output = Res> + Send,
Res: IntoResponse,
T1: FromRequestParts<()> + Send,
T2: FromRequestParts<()> + Send,
T3: FromRequestParts<()> + Send,
T4: FromRequestParts<()> + Send,
T5: FromRequestParts<()> + Send,
B: Send + 'static,
impl<S, F, B, Res, Fut, T1, T2, T3, T4, T5> Service<Request<B>> for HandleError<S, F, (T1, T2, T3, T4, T5)>where
S: Service<Request<B>> + Clone + Send + 'static,
<S as Service<Request<B>>>::Response: IntoResponse + Send,
<S as Service<Request<B>>>::Error: Send,
<S as Service<Request<B>>>::Future: Send,
F: FnOnce(T1, T2, T3, T4, T5, <S as Service<Request<B>>>::Error) -> Fut + Clone + Send + 'static,
Fut: Future<Output = Res> + Send,
Res: IntoResponse,
T1: FromRequestParts<()> + Send,
T2: FromRequestParts<()> + Send,
T3: FromRequestParts<()> + Send,
T4: FromRequestParts<()> + Send,
T5: FromRequestParts<()> + Send,
B: Send + 'static,
ยงtype Error = Infallible
type Error = Infallible
ยงtype Future = HandleErrorFuture
type Future = HandleErrorFuture
ยงfn poll_ready(
&mut self,
_: &mut Context<'_>,
) -> Poll<Result<(), <HandleError<S, F, (T1, T2, T3, T4, T5)> as Service<Request<B>>>::Error>>
fn poll_ready( &mut self, _: &mut Context<'_>, ) -> Poll<Result<(), <HandleError<S, F, (T1, T2, T3, T4, T5)> as Service<Request<B>>>::Error>>
Poll::Ready(Ok(()))
when the service is able to process requests. Read moreยงfn call(
&mut self,
req: Request<B>,
) -> <HandleError<S, F, (T1, T2, T3, T4, T5)> as Service<Request<B>>>::Future
fn call( &mut self, req: Request<B>, ) -> <HandleError<S, F, (T1, T2, T3, T4, T5)> as Service<Request<B>>>::Future
ยงimpl<S, F, B, Res, Fut, T1, T2, T3, T4, T5, T6> Service<Request<B>> for HandleError<S, F, (T1, T2, T3, T4, T5, T6)>where
S: Service<Request<B>> + Clone + Send + 'static,
<S as Service<Request<B>>>::Response: IntoResponse + Send,
<S as Service<Request<B>>>::Error: Send,
<S as Service<Request<B>>>::Future: Send,
F: FnOnce(T1, T2, T3, T4, T5, T6, <S as Service<Request<B>>>::Error) -> Fut + Clone + Send + 'static,
Fut: Future<Output = Res> + Send,
Res: IntoResponse,
T1: FromRequestParts<()> + Send,
T2: FromRequestParts<()> + Send,
T3: FromRequestParts<()> + Send,
T4: FromRequestParts<()> + Send,
T5: FromRequestParts<()> + Send,
T6: FromRequestParts<()> + Send,
B: Send + 'static,
impl<S, F, B, Res, Fut, T1, T2, T3, T4, T5, T6> Service<Request<B>> for HandleError<S, F, (T1, T2, T3, T4, T5, T6)>where
S: Service<Request<B>> + Clone + Send + 'static,
<S as Service<Request<B>>>::Response: IntoResponse + Send,
<S as Service<Request<B>>>::Error: Send,
<S as Service<Request<B>>>::Future: Send,
F: FnOnce(T1, T2, T3, T4, T5, T6, <S as Service<Request<B>>>::Error) -> Fut + Clone + Send + 'static,
Fut: Future<Output = Res> + Send,
Res: IntoResponse,
T1: FromRequestParts<()> + Send,
T2: FromRequestParts<()> + Send,
T3: FromRequestParts<()> + Send,
T4: FromRequestParts<()> + Send,
T5: FromRequestParts<()> + Send,
T6: FromRequestParts<()> + Send,
B: Send + 'static,
ยงtype Error = Infallible
type Error = Infallible
ยงtype Future = HandleErrorFuture
type Future = HandleErrorFuture
ยงfn poll_ready(
&mut self,
_: &mut Context<'_>,
) -> Poll<Result<(), <HandleError<S, F, (T1, T2, T3, T4, T5, T6)> as Service<Request<B>>>::Error>>
fn poll_ready( &mut self, _: &mut Context<'_>, ) -> Poll<Result<(), <HandleError<S, F, (T1, T2, T3, T4, T5, T6)> as Service<Request<B>>>::Error>>
Poll::Ready(Ok(()))
when the service is able to process requests. Read moreยงfn call(
&mut self,
req: Request<B>,
) -> <HandleError<S, F, (T1, T2, T3, T4, T5, T6)> as Service<Request<B>>>::Future
fn call( &mut self, req: Request<B>, ) -> <HandleError<S, F, (T1, T2, T3, T4, T5, T6)> as Service<Request<B>>>::Future
ยงimpl<S, F, B, Res, Fut, T1, T2, T3, T4, T5, T6, T7> Service<Request<B>> for HandleError<S, F, (T1, T2, T3, T4, T5, T6, T7)>where
S: Service<Request<B>> + Clone + Send + 'static,
<S as Service<Request<B>>>::Response: IntoResponse + Send,
<S as Service<Request<B>>>::Error: Send,
<S as Service<Request<B>>>::Future: Send,
F: FnOnce(T1, T2, T3, T4, T5, T6, T7, <S as Service<Request<B>>>::Error) -> Fut + Clone + Send + 'static,
Fut: Future<Output = Res> + Send,
Res: IntoResponse,
T1: FromRequestParts<()> + Send,
T2: FromRequestParts<()> + Send,
T3: FromRequestParts<()> + Send,
T4: FromRequestParts<()> + Send,
T5: FromRequestParts<()> + Send,
T6: FromRequestParts<()> + Send,
T7: FromRequestParts<()> + Send,
B: Send + 'static,
impl<S, F, B, Res, Fut, T1, T2, T3, T4, T5, T6, T7> Service<Request<B>> for HandleError<S, F, (T1, T2, T3, T4, T5, T6, T7)>where
S: Service<Request<B>> + Clone + Send + 'static,
<S as Service<Request<B>>>::Response: IntoResponse + Send,
<S as Service<Request<B>>>::Error: Send,
<S as Service<Request<B>>>::Future: Send,
F: FnOnce(T1, T2, T3, T4, T5, T6, T7, <S as Service<Request<B>>>::Error) -> Fut + Clone + Send + 'static,
Fut: Future<Output = Res> + Send,
Res: IntoResponse,
T1: FromRequestParts<()> + Send,
T2: FromRequestParts<()> + Send,
T3: FromRequestParts<()> + Send,
T4: FromRequestParts<()> + Send,
T5: FromRequestParts<()> + Send,
T6: FromRequestParts<()> + Send,
T7: FromRequestParts<()> + Send,
B: Send + 'static,
ยงtype Error = Infallible
type Error = Infallible
ยงtype Future = HandleErrorFuture
type Future = HandleErrorFuture
ยงfn poll_ready(
&mut self,
_: &mut Context<'_>,
) -> Poll<Result<(), <HandleError<S, F, (T1, T2, T3, T4, T5, T6, T7)> as Service<Request<B>>>::Error>>
fn poll_ready( &mut self, _: &mut Context<'_>, ) -> Poll<Result<(), <HandleError<S, F, (T1, T2, T3, T4, T5, T6, T7)> as Service<Request<B>>>::Error>>
Poll::Ready(Ok(()))
when the service is able to process requests. Read moreยงfn call(
&mut self,
req: Request<B>,
) -> <HandleError<S, F, (T1, T2, T3, T4, T5, T6, T7)> as Service<Request<B>>>::Future
fn call( &mut self, req: Request<B>, ) -> <HandleError<S, F, (T1, T2, T3, T4, T5, T6, T7)> as Service<Request<B>>>::Future
ยงimpl<S, F, B, Res, Fut, T1, T2, T3, T4, T5, T6, T7, T8> Service<Request<B>> for HandleError<S, F, (T1, T2, T3, T4, T5, T6, T7, T8)>where
S: Service<Request<B>> + Clone + Send + 'static,
<S as Service<Request<B>>>::Response: IntoResponse + Send,
<S as Service<Request<B>>>::Error: Send,
<S as Service<Request<B>>>::Future: Send,
F: FnOnce(T1, T2, T3, T4, T5, T6, T7, T8, <S as Service<Request<B>>>::Error) -> Fut + Clone + Send + 'static,
Fut: Future<Output = Res> + Send,
Res: IntoResponse,
T1: FromRequestParts<()> + Send,
T2: FromRequestParts<()> + Send,
T3: FromRequestParts<()> + Send,
T4: FromRequestParts<()> + Send,
T5: FromRequestParts<()> + Send,
T6: FromRequestParts<()> + Send,
T7: FromRequestParts<()> + Send,
T8: FromRequestParts<()> + Send,
B: Send + 'static,
impl<S, F, B, Res, Fut, T1, T2, T3, T4, T5, T6, T7, T8> Service<Request<B>> for HandleError<S, F, (T1, T2, T3, T4, T5, T6, T7, T8)>where
S: Service<Request<B>> + Clone + Send + 'static,
<S as Service<Request<B>>>::Response: IntoResponse + Send,
<S as Service<Request<B>>>::Error: Send,
<S as Service<Request<B>>>::Future: Send,
F: FnOnce(T1, T2, T3, T4, T5, T6, T7, T8, <S as Service<Request<B>>>::Error) -> Fut + Clone + Send + 'static,
Fut: Future<Output = Res> + Send,
Res: IntoResponse,
T1: FromRequestParts<()> + Send,
T2: FromRequestParts<()> + Send,
T3: FromRequestParts<()> + Send,
T4: FromRequestParts<()> + Send,
T5: FromRequestParts<()> + Send,
T6: FromRequestParts<()> + Send,
T7: FromRequestParts<()> + Send,
T8: FromRequestParts<()> + Send,
B: Send + 'static,
ยงtype Error = Infallible
type Error = Infallible
ยงtype Future = HandleErrorFuture
type Future = HandleErrorFuture
ยงfn poll_ready(
&mut self,
_: &mut Context<'_>,
) -> Poll<Result<(), <HandleError<S, F, (T1, T2, T3, T4, T5, T6, T7, T8)> as Service<Request<B>>>::Error>>
fn poll_ready( &mut self, _: &mut Context<'_>, ) -> Poll<Result<(), <HandleError<S, F, (T1, T2, T3, T4, T5, T6, T7, T8)> as Service<Request<B>>>::Error>>
Poll::Ready(Ok(()))
when the service is able to process requests. Read moreยงfn call(
&mut self,
req: Request<B>,
) -> <HandleError<S, F, (T1, T2, T3, T4, T5, T6, T7, T8)> as Service<Request<B>>>::Future
fn call( &mut self, req: Request<B>, ) -> <HandleError<S, F, (T1, T2, T3, T4, T5, T6, T7, T8)> as Service<Request<B>>>::Future
ยงimpl<S, F, B, Res, Fut, T1, T2, T3, T4, T5, T6, T7, T8, T9> Service<Request<B>> for HandleError<S, F, (T1, T2, T3, T4, T5, T6, T7, T8, T9)>where
S: Service<Request<B>> + Clone + Send + 'static,
<S as Service<Request<B>>>::Response: IntoResponse + Send,
<S as Service<Request<B>>>::Error: Send,
<S as Service<Request<B>>>::Future: Send,
F: FnOnce(T1, T2, T3, T4, T5, T6, T7, T8, T9, <S as Service<Request<B>>>::Error) -> Fut + Clone + Send + 'static,
Fut: Future<Output = Res> + Send,
Res: IntoResponse,
T1: FromRequestParts<()> + Send,
T2: FromRequestParts<()> + Send,
T3: FromRequestParts<()> + Send,
T4: FromRequestParts<()> + Send,
T5: FromRequestParts<()> + Send,
T6: FromRequestParts<()> + Send,
T7: FromRequestParts<()> + Send,
T8: FromRequestParts<()> + Send,
T9: FromRequestParts<()> + Send,
B: Send + 'static,
impl<S, F, B, Res, Fut, T1, T2, T3, T4, T5, T6, T7, T8, T9> Service<Request<B>> for HandleError<S, F, (T1, T2, T3, T4, T5, T6, T7, T8, T9)>where
S: Service<Request<B>> + Clone + Send + 'static,
<S as Service<Request<B>>>::Response: IntoResponse + Send,
<S as Service<Request<B>>>::Error: Send,
<S as Service<Request<B>>>::Future: Send,
F: FnOnce(T1, T2, T3, T4, T5, T6, T7, T8, T9, <S as Service<Request<B>>>::Error) -> Fut + Clone + Send + 'static,
Fut: Future<Output = Res> + Send,
Res: IntoResponse,
T1: FromRequestParts<()> + Send,
T2: FromRequestParts<()> + Send,
T3: FromRequestParts<()> + Send,
T4: FromRequestParts<()> + Send,
T5: FromRequestParts<()> + Send,
T6: FromRequestParts<()> + Send,
T7: FromRequestParts<()> + Send,
T8: FromRequestParts<()> + Send,
T9: FromRequestParts<()> + Send,
B: Send + 'static,
ยงtype Error = Infallible
type Error = Infallible
ยงtype Future = HandleErrorFuture
type Future = HandleErrorFuture
ยงfn poll_ready(
&mut self,
_: &mut Context<'_>,
) -> Poll<Result<(), <HandleError<S, F, (T1, T2, T3, T4, T5, T6, T7, T8, T9)> as Service<Request<B>>>::Error>>
fn poll_ready( &mut self, _: &mut Context<'_>, ) -> Poll<Result<(), <HandleError<S, F, (T1, T2, T3, T4, T5, T6, T7, T8, T9)> as Service<Request<B>>>::Error>>
Poll::Ready(Ok(()))
when the service is able to process requests. Read moreยงfn call(
&mut self,
req: Request<B>,
) -> <HandleError<S, F, (T1, T2, T3, T4, T5, T6, T7, T8, T9)> as Service<Request<B>>>::Future
fn call( &mut self, req: Request<B>, ) -> <HandleError<S, F, (T1, T2, T3, T4, T5, T6, T7, T8, T9)> as Service<Request<B>>>::Future
ยงimpl<S, F, B, Res, Fut, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> Service<Request<B>> for HandleError<S, F, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)>where
S: Service<Request<B>> + Clone + Send + 'static,
<S as Service<Request<B>>>::Response: IntoResponse + Send,
<S as Service<Request<B>>>::Error: Send,
<S as Service<Request<B>>>::Future: Send,
F: FnOnce(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, <S as Service<Request<B>>>::Error) -> Fut + Clone + Send + 'static,
Fut: Future<Output = Res> + Send,
Res: IntoResponse,
T1: FromRequestParts<()> + Send,
T2: FromRequestParts<()> + Send,
T3: FromRequestParts<()> + Send,
T4: FromRequestParts<()> + Send,
T5: FromRequestParts<()> + Send,
T6: FromRequestParts<()> + Send,
T7: FromRequestParts<()> + Send,
T8: FromRequestParts<()> + Send,
T9: FromRequestParts<()> + Send,
T10: FromRequestParts<()> + Send,
B: Send + 'static,
impl<S, F, B, Res, Fut, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> Service<Request<B>> for HandleError<S, F, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)>where
S: Service<Request<B>> + Clone + Send + 'static,
<S as Service<Request<B>>>::Response: IntoResponse + Send,
<S as Service<Request<B>>>::Error: Send,
<S as Service<Request<B>>>::Future: Send,
F: FnOnce(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, <S as Service<Request<B>>>::Error) -> Fut + Clone + Send + 'static,
Fut: Future<Output = Res> + Send,
Res: IntoResponse,
T1: FromRequestParts<()> + Send,
T2: FromRequestParts<()> + Send,
T3: FromRequestParts<()> + Send,
T4: FromRequestParts<()> + Send,
T5: FromRequestParts<()> + Send,
T6: FromRequestParts<()> + Send,
T7: FromRequestParts<()> + Send,
T8: FromRequestParts<()> + Send,
T9: FromRequestParts<()> + Send,
T10: FromRequestParts<()> + Send,
B: Send + 'static,
ยงtype Error = Infallible
type Error = Infallible
ยงtype Future = HandleErrorFuture
type Future = HandleErrorFuture
ยงfn poll_ready(
&mut self,
_: &mut Context<'_>,
) -> Poll<Result<(), <HandleError<S, F, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)> as Service<Request<B>>>::Error>>
fn poll_ready( &mut self, _: &mut Context<'_>, ) -> Poll<Result<(), <HandleError<S, F, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)> as Service<Request<B>>>::Error>>
Poll::Ready(Ok(()))
when the service is able to process requests. Read moreยงfn call(
&mut self,
req: Request<B>,
) -> <HandleError<S, F, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)> as Service<Request<B>>>::Future
fn call( &mut self, req: Request<B>, ) -> <HandleError<S, F, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)> as Service<Request<B>>>::Future
ยงimpl<S, F, B, Res, Fut, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> Service<Request<B>> for HandleError<S, F, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)>where
S: Service<Request<B>> + Clone + Send + 'static,
<S as Service<Request<B>>>::Response: IntoResponse + Send,
<S as Service<Request<B>>>::Error: Send,
<S as Service<Request<B>>>::Future: Send,
F: FnOnce(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, <S as Service<Request<B>>>::Error) -> Fut + Clone + Send + 'static,
Fut: Future<Output = Res> + Send,
Res: IntoResponse,
T1: FromRequestParts<()> + Send,
T2: FromRequestParts<()> + Send,
T3: FromRequestParts<()> + Send,
T4: FromRequestParts<()> + Send,
T5: FromRequestParts<()> + Send,
T6: FromRequestParts<()> + Send,
T7: FromRequestParts<()> + Send,
T8: FromRequestParts<()> + Send,
T9: FromRequestParts<()> + Send,
T10: FromRequestParts<()> + Send,
T11: FromRequestParts<()> + Send,
B: Send + 'static,
impl<S, F, B, Res, Fut, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> Service<Request<B>> for HandleError<S, F, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)>where
S: Service<Request<B>> + Clone + Send + 'static,
<S as Service<Request<B>>>::Response: IntoResponse + Send,
<S as Service<Request<B>>>::Error: Send,
<S as Service<Request<B>>>::Future: Send,
F: FnOnce(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, <S as Service<Request<B>>>::Error) -> Fut + Clone + Send + 'static,
Fut: Future<Output = Res> + Send,
Res: IntoResponse,
T1: FromRequestParts<()> + Send,
T2: FromRequestParts<()> + Send,
T3: FromRequestParts<()> + Send,
T4: FromRequestParts<()> + Send,
T5: FromRequestParts<()> + Send,
T6: FromRequestParts<()> + Send,
T7: FromRequestParts<()> + Send,
T8: FromRequestParts<()> + Send,
T9: FromRequestParts<()> + Send,
T10: FromRequestParts<()> + Send,
T11: FromRequestParts<()> + Send,
B: Send + 'static,
ยงtype Error = Infallible
type Error = Infallible
ยงtype Future = HandleErrorFuture
type Future = HandleErrorFuture
ยงfn poll_ready(
&mut self,
_: &mut Context<'_>,
) -> Poll<Result<(), <HandleError<S, F, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)> as Service<Request<B>>>::Error>>
fn poll_ready( &mut self, _: &mut Context<'_>, ) -> Poll<Result<(), <HandleError<S, F, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)> as Service<Request<B>>>::Error>>
Poll::Ready(Ok(()))
when the service is able to process requests. Read moreยงfn call(
&mut self,
req: Request<B>,
) -> <HandleError<S, F, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)> as Service<Request<B>>>::Future
fn call( &mut self, req: Request<B>, ) -> <HandleError<S, F, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)> as Service<Request<B>>>::Future
ยงimpl<S, F, B, Res, Fut, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> Service<Request<B>> for HandleError<S, F, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)>where
S: Service<Request<B>> + Clone + Send + 'static,
<S as Service<Request<B>>>::Response: IntoResponse + Send,
<S as Service<Request<B>>>::Error: Send,
<S as Service<Request<B>>>::Future: Send,
F: FnOnce(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, <S as Service<Request<B>>>::Error) -> Fut + Clone + Send + 'static,
Fut: Future<Output = Res> + Send,
Res: IntoResponse,
T1: FromRequestParts<()> + Send,
T2: FromRequestParts<()> + Send,
T3: FromRequestParts<()> + Send,
T4: FromRequestParts<()> + Send,
T5: FromRequestParts<()> + Send,
T6: FromRequestParts<()> + Send,
T7: FromRequestParts<()> + Send,
T8: FromRequestParts<()> + Send,
T9: FromRequestParts<()> + Send,
T10: FromRequestParts<()> + Send,
T11: FromRequestParts<()> + Send,
T12: FromRequestParts<()> + Send,
B: Send + 'static,
impl<S, F, B, Res, Fut, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> Service<Request<B>> for HandleError<S, F, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)>where
S: Service<Request<B>> + Clone + Send + 'static,
<S as Service<Request<B>>>::Response: IntoResponse + Send,
<S as Service<Request<B>>>::Error: Send,
<S as Service<Request<B>>>::Future: Send,
F: FnOnce(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, <S as Service<Request<B>>>::Error) -> Fut + Clone + Send + 'static,
Fut: Future<Output = Res> + Send,
Res: IntoResponse,
T1: FromRequestParts<()> + Send,
T2: FromRequestParts<()> + Send,
T3: FromRequestParts<()> + Send,
T4: FromRequestParts<()> + Send,
T5: FromRequestParts<()> + Send,
T6: FromRequestParts<()> + Send,
T7: FromRequestParts<()> + Send,
T8: FromRequestParts<()> + Send,
T9: FromRequestParts<()> + Send,
T10: FromRequestParts<()> + Send,
T11: FromRequestParts<()> + Send,
T12: FromRequestParts<()> + Send,
B: Send + 'static,
ยงtype Error = Infallible
type Error = Infallible
ยงtype Future = HandleErrorFuture
type Future = HandleErrorFuture
ยงfn poll_ready(
&mut self,
_: &mut Context<'_>,
) -> Poll<Result<(), <HandleError<S, F, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)> as Service<Request<B>>>::Error>>
fn poll_ready( &mut self, _: &mut Context<'_>, ) -> Poll<Result<(), <HandleError<S, F, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)> as Service<Request<B>>>::Error>>
Poll::Ready(Ok(()))
when the service is able to process requests. Read moreยงfn call(
&mut self,
req: Request<B>,
) -> <HandleError<S, F, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)> as Service<Request<B>>>::Future
fn call( &mut self, req: Request<B>, ) -> <HandleError<S, F, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)> as Service<Request<B>>>::Future
ยงimpl<S, F, B, Res, Fut, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13> Service<Request<B>> for HandleError<S, F, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13)>where
S: Service<Request<B>> + Clone + Send + 'static,
<S as Service<Request<B>>>::Response: IntoResponse + Send,
<S as Service<Request<B>>>::Error: Send,
<S as Service<Request<B>>>::Future: Send,
F: FnOnce(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, <S as Service<Request<B>>>::Error) -> Fut + Clone + Send + 'static,
Fut: Future<Output = Res> + Send,
Res: IntoResponse,
T1: FromRequestParts<()> + Send,
T2: FromRequestParts<()> + Send,
T3: FromRequestParts<()> + Send,
T4: FromRequestParts<()> + Send,
T5: FromRequestParts<()> + Send,
T6: FromRequestParts<()> + Send,
T7: FromRequestParts<()> + Send,
T8: FromRequestParts<()> + Send,
T9: FromRequestParts<()> + Send,
T10: FromRequestParts<()> + Send,
T11: FromRequestParts<()> + Send,
T12: FromRequestParts<()> + Send,
T13: FromRequestParts<()> + Send,
B: Send + 'static,
impl<S, F, B, Res, Fut, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13> Service<Request<B>> for HandleError<S, F, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13)>where
S: Service<Request<B>> + Clone + Send + 'static,
<S as Service<Request<B>>>::Response: IntoResponse + Send,
<S as Service<Request<B>>>::Error: Send,
<S as Service<Request<B>>>::Future: Send,
F: FnOnce(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, <S as Service<Request<B>>>::Error) -> Fut + Clone + Send + 'static,
Fut: Future<Output = Res> + Send,
Res: IntoResponse,
T1: FromRequestParts<()> + Send,
T2: FromRequestParts<()> + Send,
T3: FromRequestParts<()> + Send,
T4: FromRequestParts<()> + Send,
T5: FromRequestParts<()> + Send,
T6: FromRequestParts<()> + Send,
T7: FromRequestParts<()> + Send,
T8: FromRequestParts<()> + Send,
T9: FromRequestParts<()> + Send,
T10: FromRequestParts<()> + Send,
T11: FromRequestParts<()> + Send,
T12: FromRequestParts<()> + Send,
T13: FromRequestParts<()> + Send,
B: Send + 'static,
ยงtype Error = Infallible
type Error = Infallible
ยงtype Future = HandleErrorFuture
type Future = HandleErrorFuture
ยงfn poll_ready(
&mut self,
_: &mut Context<'_>,
) -> Poll<Result<(), <HandleError<S, F, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13)> as Service<Request<B>>>::Error>>
fn poll_ready( &mut self, _: &mut Context<'_>, ) -> Poll<Result<(), <HandleError<S, F, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13)> as Service<Request<B>>>::Error>>
Poll::Ready(Ok(()))
when the service is able to process requests. Read moreยงfn call(
&mut self,
req: Request<B>,
) -> <HandleError<S, F, (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>, ) -> <HandleError<S, F, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13)> as Service<Request<B>>>::Future
ยงimpl<S, F, B, Res, Fut, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14> Service<Request<B>> for HandleError<S, F, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14)>where
S: Service<Request<B>> + Clone + Send + 'static,
<S as Service<Request<B>>>::Response: IntoResponse + Send,
<S as Service<Request<B>>>::Error: Send,
<S as Service<Request<B>>>::Future: Send,
F: FnOnce(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, <S as Service<Request<B>>>::Error) -> Fut + Clone + Send + 'static,
Fut: Future<Output = Res> + Send,
Res: IntoResponse,
T1: FromRequestParts<()> + Send,
T2: FromRequestParts<()> + Send,
T3: FromRequestParts<()> + Send,
T4: FromRequestParts<()> + Send,
T5: FromRequestParts<()> + Send,
T6: FromRequestParts<()> + Send,
T7: FromRequestParts<()> + Send,
T8: FromRequestParts<()> + Send,
T9: FromRequestParts<()> + Send,
T10: FromRequestParts<()> + Send,
T11: FromRequestParts<()> + Send,
T12: FromRequestParts<()> + Send,
T13: FromRequestParts<()> + Send,
T14: FromRequestParts<()> + Send,
B: Send + 'static,
impl<S, F, B, Res, Fut, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14> Service<Request<B>> for HandleError<S, F, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14)>where
S: Service<Request<B>> + Clone + Send + 'static,
<S as Service<Request<B>>>::Response: IntoResponse + Send,
<S as Service<Request<B>>>::Error: Send,
<S as Service<Request<B>>>::Future: Send,
F: FnOnce(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, <S as Service<Request<B>>>::Error) -> Fut + Clone + Send + 'static,
Fut: Future<Output = Res> + Send,
Res: IntoResponse,
T1: FromRequestParts<()> + Send,
T2: FromRequestParts<()> + Send,
T3: FromRequestParts<()> + Send,
T4: FromRequestParts<()> + Send,
T5: FromRequestParts<()> + Send,
T6: FromRequestParts<()> + Send,
T7: FromRequestParts<()> + Send,
T8: FromRequestParts<()> + Send,
T9: FromRequestParts<()> + Send,
T10: FromRequestParts<()> + Send,
T11: FromRequestParts<()> + Send,
T12: FromRequestParts<()> + Send,
T13: FromRequestParts<()> + Send,
T14: FromRequestParts<()> + Send,
B: Send + 'static,
ยงtype Error = Infallible
type Error = Infallible
ยงtype Future = HandleErrorFuture
type Future = HandleErrorFuture
ยงfn poll_ready(
&mut self,
_: &mut Context<'_>,
) -> Poll<Result<(), <HandleError<S, F, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14)> as Service<Request<B>>>::Error>>
fn poll_ready( &mut self, _: &mut Context<'_>, ) -> Poll<Result<(), <HandleError<S, F, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14)> as Service<Request<B>>>::Error>>
Poll::Ready(Ok(()))
when the service is able to process requests. Read moreยงfn call(
&mut self,
req: Request<B>,
) -> <HandleError<S, F, (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>, ) -> <HandleError<S, F, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14)> as Service<Request<B>>>::Future
ยงimpl<S, F, B, Res, Fut, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> Service<Request<B>> for HandleError<S, F, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15)>where
S: Service<Request<B>> + Clone + Send + 'static,
<S as Service<Request<B>>>::Response: IntoResponse + Send,
<S as Service<Request<B>>>::Error: Send,
<S as Service<Request<B>>>::Future: Send,
F: FnOnce(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, <S as Service<Request<B>>>::Error) -> Fut + Clone + Send + 'static,
Fut: Future<Output = Res> + Send,
Res: IntoResponse,
T1: FromRequestParts<()> + Send,
T2: FromRequestParts<()> + Send,
T3: FromRequestParts<()> + Send,
T4: FromRequestParts<()> + Send,
T5: FromRequestParts<()> + Send,
T6: FromRequestParts<()> + Send,
T7: FromRequestParts<()> + Send,
T8: FromRequestParts<()> + Send,
T9: FromRequestParts<()> + Send,
T10: FromRequestParts<()> + Send,
T11: FromRequestParts<()> + Send,
T12: FromRequestParts<()> + Send,
T13: FromRequestParts<()> + Send,
T14: FromRequestParts<()> + Send,
T15: FromRequestParts<()> + Send,
B: Send + 'static,
impl<S, F, B, Res, Fut, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> Service<Request<B>> for HandleError<S, F, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15)>where
S: Service<Request<B>> + Clone + Send + 'static,
<S as Service<Request<B>>>::Response: IntoResponse + Send,
<S as Service<Request<B>>>::Error: Send,
<S as Service<Request<B>>>::Future: Send,
F: FnOnce(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, <S as Service<Request<B>>>::Error) -> Fut + Clone + Send + 'static,
Fut: Future<Output = Res> + Send,
Res: IntoResponse,
T1: FromRequestParts<()> + Send,
T2: FromRequestParts<()> + Send,
T3: FromRequestParts<()> + Send,
T4: FromRequestParts<()> + Send,
T5: FromRequestParts<()> + Send,
T6: FromRequestParts<()> + Send,
T7: FromRequestParts<()> + Send,
T8: FromRequestParts<()> + Send,
T9: FromRequestParts<()> + Send,
T10: FromRequestParts<()> + Send,
T11: FromRequestParts<()> + Send,
T12: FromRequestParts<()> + Send,
T13: FromRequestParts<()> + Send,
T14: FromRequestParts<()> + Send,
T15: FromRequestParts<()> + Send,
B: Send + 'static,
ยงtype Error = Infallible
type Error = Infallible
ยงtype Future = HandleErrorFuture
type Future = HandleErrorFuture
ยงfn poll_ready(
&mut self,
_: &mut Context<'_>,
) -> Poll<Result<(), <HandleError<S, F, (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, _: &mut Context<'_>, ) -> Poll<Result<(), <HandleError<S, F, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15)> as Service<Request<B>>>::Error>>
Poll::Ready(Ok(()))
when the service is able to process requests. Read moreยงfn call(
&mut self,
req: Request<B>,
) -> <HandleError<S, F, (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>, ) -> <HandleError<S, F, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15)> as Service<Request<B>>>::Future
ยงimpl<S, F, B, Res, Fut, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16> Service<Request<B>> for HandleError<S, F, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16)>where
S: Service<Request<B>> + Clone + Send + 'static,
<S as Service<Request<B>>>::Response: IntoResponse + Send,
<S as Service<Request<B>>>::Error: Send,
<S as Service<Request<B>>>::Future: Send,
F: FnOnce(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, <S as Service<Request<B>>>::Error) -> Fut + Clone + Send + 'static,
Fut: Future<Output = Res> + Send,
Res: IntoResponse,
T1: FromRequestParts<()> + Send,
T2: FromRequestParts<()> + Send,
T3: FromRequestParts<()> + Send,
T4: FromRequestParts<()> + Send,
T5: FromRequestParts<()> + Send,
T6: FromRequestParts<()> + Send,
T7: FromRequestParts<()> + Send,
T8: FromRequestParts<()> + Send,
T9: FromRequestParts<()> + Send,
T10: FromRequestParts<()> + Send,
T11: FromRequestParts<()> + Send,
T12: FromRequestParts<()> + Send,
T13: FromRequestParts<()> + Send,
T14: FromRequestParts<()> + Send,
T15: FromRequestParts<()> + Send,
T16: FromRequestParts<()> + Send,
B: Send + 'static,
impl<S, F, B, Res, Fut, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16> Service<Request<B>> for HandleError<S, F, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16)>where
S: Service<Request<B>> + Clone + Send + 'static,
<S as Service<Request<B>>>::Response: IntoResponse + Send,
<S as Service<Request<B>>>::Error: Send,
<S as Service<Request<B>>>::Future: Send,
F: FnOnce(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, <S as Service<Request<B>>>::Error) -> Fut + Clone + Send + 'static,
Fut: Future<Output = Res> + Send,
Res: IntoResponse,
T1: FromRequestParts<()> + Send,
T2: FromRequestParts<()> + Send,
T3: FromRequestParts<()> + Send,
T4: FromRequestParts<()> + Send,
T5: FromRequestParts<()> + Send,
T6: FromRequestParts<()> + Send,
T7: FromRequestParts<()> + Send,
T8: FromRequestParts<()> + Send,
T9: FromRequestParts<()> + Send,
T10: FromRequestParts<()> + Send,
T11: FromRequestParts<()> + Send,
T12: FromRequestParts<()> + Send,
T13: FromRequestParts<()> + Send,
T14: FromRequestParts<()> + Send,
T15: FromRequestParts<()> + Send,
T16: FromRequestParts<()> + Send,
B: Send + 'static,
ยงtype Error = Infallible
type Error = Infallible
ยงtype Future = HandleErrorFuture
type Future = HandleErrorFuture
ยงfn poll_ready(
&mut self,
_: &mut Context<'_>,
) -> Poll<Result<(), <HandleError<S, F, (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, _: &mut Context<'_>, ) -> Poll<Result<(), <HandleError<S, F, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16)> as Service<Request<B>>>::Error>>
Poll::Ready(Ok(()))
when the service is able to process requests. Read moreยงfn call(
&mut self,
req: Request<B>,
) -> <HandleError<S, F, (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>, ) -> <HandleError<S, F, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16)> as Service<Request<B>>>::Future
ยงimpl<H, T, S, B> Service<Request<B>> for HandlerService<H, T, S>
impl<H, T, S, B> Service<Request<B>> for HandlerService<H, T, S>
ยงtype Error = Infallible
type Error = Infallible
ยงtype Future = IntoServiceFuture<<H as Handler<T, S>>::Future>
type Future = IntoServiceFuture<<H as Handler<T, S>>::Future>
ยงfn poll_ready(
&mut self,
_cx: &mut Context<'_>,
) -> Poll<Result<(), <HandlerService<H, T, S> as Service<Request<B>>>::Error>>
fn poll_ready( &mut self, _cx: &mut Context<'_>, ) -> Poll<Result<(), <HandlerService<H, T, S> as Service<Request<B>>>::Error>>
Poll::Ready(Ok(()))
when the service is able to process requests. Read moreยง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
ยงtype Future = ResponseFuture
type Future = ResponseFuture
ยง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>>
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
ยงtype Future = ResponseFuture
type Future = ResponseFuture
ยง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>>
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
ยงtype Future = ResponseFuture
type Future = ResponseFuture
ยง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>>
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
ยง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
ยงtype Future = ResponseFuture
type Future = ResponseFuture
ยง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>>
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
ยง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
ยงtype Future = ResponseFuture
type Future = ResponseFuture
ยง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>>
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
ยง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
ยงtype Future = ResponseFuture
type Future = ResponseFuture
ยง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>>
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
ยง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
ยงtype Future = ResponseFuture
type Future = ResponseFuture
ยง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>>
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
ยง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
ยงtype Future = ResponseFuture
type Future = ResponseFuture
ยง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>>
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
ยง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
ยงtype Future = ResponseFuture
type Future = ResponseFuture
ยง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>>
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
ยง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
ยงtype Future = ResponseFuture
type Future = ResponseFuture
ยง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>>
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
ยง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
ยงtype Future = ResponseFuture
type Future = ResponseFuture
ยง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>>
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
ยง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
ยงtype Future = ResponseFuture
type Future = ResponseFuture
ยง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>>
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
ยง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
ยงtype Future = ResponseFuture
type Future = ResponseFuture
ยง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>>
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
ยง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
ยงtype Future = ResponseFuture
type Future = ResponseFuture
ยง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>>
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
ยง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
ยงtype Future = ResponseFuture
type Future = ResponseFuture
ยง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>>
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
ยง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
ยงtype Future = ResponseFuture
type Future = ResponseFuture
ยง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>>
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
ยงimpl<F, Fut, S, I, B, ResBody> Service<Request<B>> for MapResponse<F, S, I, ()>where
F: FnMut(Response<ResBody>) -> Fut + Clone + Send + 'static,
Fut: Future + Send + 'static,
<Fut as Future>::Output: IntoResponse + Send + 'static,
I: Service<Request<B>, Response = Response<ResBody>, Error = Infallible> + Clone + Send + 'static,
<I as Service<Request<B>>>::Future: Send + 'static,
B: Send + 'static,
ResBody: Send + 'static,
S: Clone + Send + Sync + 'static,
impl<F, Fut, S, I, B, ResBody> Service<Request<B>> for MapResponse<F, S, I, ()>where
F: FnMut(Response<ResBody>) -> Fut + Clone + Send + 'static,
Fut: Future + Send + 'static,
<Fut as Future>::Output: IntoResponse + Send + 'static,
I: Service<Request<B>, Response = Response<ResBody>, Error = Infallible> + Clone + Send + 'static,
<I as Service<Request<B>>>::Future: Send + 'static,
B: Send + 'static,
ResBody: Send + 'static,
S: Clone + Send + Sync + 'static,
ยงtype Error = Infallible
type Error = Infallible
ยงtype Future = ResponseFuture
type Future = ResponseFuture
ยงfn poll_ready(
&mut self,
cx: &mut Context<'_>,
) -> Poll<Result<(), <MapResponse<F, S, I, ()> as Service<Request<B>>>::Error>>
fn poll_ready( &mut self, cx: &mut Context<'_>, ) -> Poll<Result<(), <MapResponse<F, S, I, ()> as Service<Request<B>>>::Error>>
Poll::Ready(Ok(()))
when the service is able to process requests. Read moreยงimpl<F, Fut, S, I, B, ResBody, T1> Service<Request<B>> for MapResponse<F, S, I, (T1,)>where
F: FnMut(T1, Response<ResBody>) -> Fut + Clone + Send + 'static,
T1: FromRequestParts<S> + Send,
Fut: Future + Send + 'static,
<Fut as Future>::Output: IntoResponse + Send + 'static,
I: Service<Request<B>, Response = Response<ResBody>, Error = Infallible> + Clone + Send + 'static,
<I as Service<Request<B>>>::Future: Send + 'static,
B: Send + 'static,
ResBody: Send + 'static,
S: Clone + Send + Sync + 'static,
impl<F, Fut, S, I, B, ResBody, T1> Service<Request<B>> for MapResponse<F, S, I, (T1,)>where
F: FnMut(T1, Response<ResBody>) -> Fut + Clone + Send + 'static,
T1: FromRequestParts<S> + Send,
Fut: Future + Send + 'static,
<Fut as Future>::Output: IntoResponse + Send + 'static,
I: Service<Request<B>, Response = Response<ResBody>, Error = Infallible> + Clone + Send + 'static,
<I as Service<Request<B>>>::Future: Send + 'static,
B: Send + 'static,
ResBody: Send + 'static,
S: Clone + Send + Sync + 'static,
ยงtype Error = Infallible
type Error = Infallible
ยงtype Future = ResponseFuture
type Future = ResponseFuture
ยงfn poll_ready(
&mut self,
cx: &mut Context<'_>,
) -> Poll<Result<(), <MapResponse<F, S, I, (T1,)> as Service<Request<B>>>::Error>>
fn poll_ready( &mut self, cx: &mut Context<'_>, ) -> Poll<Result<(), <MapResponse<F, S, I, (T1,)> as Service<Request<B>>>::Error>>
Poll::Ready(Ok(()))
when the service is able to process requests. Read moreยงimpl<F, Fut, S, I, B, ResBody, T1, T2> Service<Request<B>> for MapResponse<F, S, I, (T1, T2)>where
F: FnMut(T1, T2, Response<ResBody>) -> Fut + Clone + Send + 'static,
T1: FromRequestParts<S> + Send,
T2: FromRequestParts<S> + Send,
Fut: Future + Send + 'static,
<Fut as Future>::Output: IntoResponse + Send + 'static,
I: Service<Request<B>, Response = Response<ResBody>, Error = Infallible> + Clone + Send + 'static,
<I as Service<Request<B>>>::Future: Send + 'static,
B: Send + 'static,
ResBody: Send + 'static,
S: Clone + Send + Sync + 'static,
impl<F, Fut, S, I, B, ResBody, T1, T2> Service<Request<B>> for MapResponse<F, S, I, (T1, T2)>where
F: FnMut(T1, T2, Response<ResBody>) -> Fut + Clone + Send + 'static,
T1: FromRequestParts<S> + Send,
T2: FromRequestParts<S> + Send,
Fut: Future + Send + 'static,
<Fut as Future>::Output: IntoResponse + Send + 'static,
I: Service<Request<B>, Response = Response<ResBody>, Error = Infallible> + Clone + Send + 'static,
<I as Service<Request<B>>>::Future: Send + 'static,
B: Send + 'static,
ResBody: Send + 'static,
S: Clone + Send + Sync + 'static,
ยงtype Error = Infallible
type Error = Infallible
ยงtype Future = ResponseFuture
type Future = ResponseFuture
ยงfn poll_ready(
&mut self,
cx: &mut Context<'_>,
) -> Poll<Result<(), <MapResponse<F, S, I, (T1, T2)> as Service<Request<B>>>::Error>>
fn poll_ready( &mut self, cx: &mut Context<'_>, ) -> Poll<Result<(), <MapResponse<F, S, I, (T1, T2)> as Service<Request<B>>>::Error>>
Poll::Ready(Ok(()))
when the service is able to process requests. Read moreยงimpl<F, Fut, S, I, B, ResBody, T1, T2, T3> Service<Request<B>> for MapResponse<F, S, I, (T1, T2, T3)>where
F: FnMut(T1, T2, T3, Response<ResBody>) -> Fut + Clone + Send + 'static,
T1: FromRequestParts<S> + Send,
T2: FromRequestParts<S> + Send,
T3: FromRequestParts<S> + Send,
Fut: Future + Send + 'static,
<Fut as Future>::Output: IntoResponse + Send + 'static,
I: Service<Request<B>, Response = Response<ResBody>, Error = Infallible> + Clone + Send + 'static,
<I as Service<Request<B>>>::Future: Send + 'static,
B: Send + 'static,
ResBody: Send + 'static,
S: Clone + Send + Sync + 'static,
impl<F, Fut, S, I, B, ResBody, T1, T2, T3> Service<Request<B>> for MapResponse<F, S, I, (T1, T2, T3)>where
F: FnMut(T1, T2, T3, Response<ResBody>) -> Fut + Clone + Send + 'static,
T1: FromRequestParts<S> + Send,
T2: FromRequestParts<S> + Send,
T3: FromRequestParts<S> + Send,
Fut: Future + Send + 'static,
<Fut as Future>::Output: IntoResponse + Send + 'static,
I: Service<Request<B>, Response = Response<ResBody>, Error = Infallible> + Clone + Send + 'static,
<I as Service<Request<B>>>::Future: Send + 'static,
B: Send + 'static,
ResBody: Send + 'static,
S: Clone + Send + Sync + 'static,
ยงtype Error = Infallible
type Error = Infallible
ยงtype Future = ResponseFuture
type Future = ResponseFuture
ยงfn poll_ready(
&mut self,
cx: &mut Context<'_>,
) -> Poll<Result<(), <MapResponse<F, S, I, (T1, T2, T3)> as Service<Request<B>>>::Error>>
fn poll_ready( &mut self, cx: &mut Context<'_>, ) -> Poll<Result<(), <MapResponse<F, S, I, (T1, T2, T3)> as Service<Request<B>>>::Error>>
Poll::Ready(Ok(()))
when the service is able to process requests. Read moreยงfn call(
&mut self,
req: Request<B>,
) -> <MapResponse<F, S, I, (T1, T2, T3)> as Service<Request<B>>>::Future
fn call( &mut self, req: Request<B>, ) -> <MapResponse<F, S, I, (T1, T2, T3)> as Service<Request<B>>>::Future
ยงimpl<F, Fut, S, I, B, ResBody, T1, T2, T3, T4> Service<Request<B>> for MapResponse<F, S, I, (T1, T2, T3, T4)>where
F: FnMut(T1, T2, T3, T4, Response<ResBody>) -> Fut + Clone + Send + 'static,
T1: FromRequestParts<S> + Send,
T2: FromRequestParts<S> + Send,
T3: FromRequestParts<S> + Send,
T4: FromRequestParts<S> + Send,
Fut: Future + Send + 'static,
<Fut as Future>::Output: IntoResponse + Send + 'static,
I: Service<Request<B>, Response = Response<ResBody>, Error = Infallible> + Clone + Send + 'static,
<I as Service<Request<B>>>::Future: Send + 'static,
B: Send + 'static,
ResBody: Send + 'static,
S: Clone + Send + Sync + 'static,
impl<F, Fut, S, I, B, ResBody, T1, T2, T3, T4> Service<Request<B>> for MapResponse<F, S, I, (T1, T2, T3, T4)>where
F: FnMut(T1, T2, T3, T4, Response<ResBody>) -> Fut + Clone + Send + 'static,
T1: FromRequestParts<S> + Send,
T2: FromRequestParts<S> + Send,
T3: FromRequestParts<S> + Send,
T4: FromRequestParts<S> + Send,
Fut: Future + Send + 'static,
<Fut as Future>::Output: IntoResponse + Send + 'static,
I: Service<Request<B>, Response = Response<ResBody>, Error = Infallible> + Clone + Send + 'static,
<I as Service<Request<B>>>::Future: Send + 'static,
B: Send + 'static,
ResBody: Send + 'static,
S: Clone + Send + Sync + 'static,
ยงtype Error = Infallible
type Error = Infallible
ยงtype Future = ResponseFuture
type Future = ResponseFuture
ยงfn poll_ready(
&mut self,
cx: &mut Context<'_>,
) -> Poll<Result<(), <MapResponse<F, S, I, (T1, T2, T3, T4)> as Service<Request<B>>>::Error>>
fn poll_ready( &mut self, cx: &mut Context<'_>, ) -> Poll<Result<(), <MapResponse<F, S, I, (T1, T2, T3, T4)> as Service<Request<B>>>::Error>>
Poll::Ready(Ok(()))
when the service is able to process requests. Read moreยงfn call(
&mut self,
req: Request<B>,
) -> <MapResponse<F, S, I, (T1, T2, T3, T4)> as Service<Request<B>>>::Future
fn call( &mut self, req: Request<B>, ) -> <MapResponse<F, S, I, (T1, T2, T3, T4)> as Service<Request<B>>>::Future
ยงimpl<F, Fut, S, I, B, ResBody, T1, T2, T3, T4, T5> Service<Request<B>> for MapResponse<F, S, I, (T1, T2, T3, T4, T5)>where
F: FnMut(T1, T2, T3, T4, T5, Response<ResBody>) -> Fut + Clone + Send + 'static,
T1: FromRequestParts<S> + Send,
T2: FromRequestParts<S> + Send,
T3: FromRequestParts<S> + Send,
T4: FromRequestParts<S> + Send,
T5: FromRequestParts<S> + Send,
Fut: Future + Send + 'static,
<Fut as Future>::Output: IntoResponse + Send + 'static,
I: Service<Request<B>, Response = Response<ResBody>, Error = Infallible> + Clone + Send + 'static,
<I as Service<Request<B>>>::Future: Send + 'static,
B: Send + 'static,
ResBody: Send + 'static,
S: Clone + Send + Sync + 'static,
impl<F, Fut, S, I, B, ResBody, T1, T2, T3, T4, T5> Service<Request<B>> for MapResponse<F, S, I, (T1, T2, T3, T4, T5)>where
F: FnMut(T1, T2, T3, T4, T5, Response<ResBody>) -> Fut + Clone + Send + 'static,
T1: FromRequestParts<S> + Send,
T2: FromRequestParts<S> + Send,
T3: FromRequestParts<S> + Send,
T4: FromRequestParts<S> + Send,
T5: FromRequestParts<S> + Send,
Fut: Future + Send + 'static,
<Fut as Future>::Output: IntoResponse + Send + 'static,
I: Service<Request<B>, Response = Response<ResBody>, Error = Infallible> + Clone + Send + 'static,
<I as Service<Request<B>>>::Future: Send + 'static,
B: Send + 'static,
ResBody: Send + 'static,
S: Clone + Send + Sync + 'static,
ยงtype Error = Infallible
type Error = Infallible
ยงtype Future = ResponseFuture
type Future = ResponseFuture
ยงfn poll_ready(
&mut self,
cx: &mut Context<'_>,
) -> Poll<Result<(), <MapResponse<F, S, I, (T1, T2, T3, T4, T5)> as Service<Request<B>>>::Error>>
fn poll_ready( &mut self, cx: &mut Context<'_>, ) -> Poll<Result<(), <MapResponse<F, S, I, (T1, T2, T3, T4, T5)> as Service<Request<B>>>::Error>>
Poll::Ready(Ok(()))
when the service is able to process requests. Read moreยงfn call(
&mut self,
req: Request<B>,
) -> <MapResponse<F, S, I, (T1, T2, T3, T4, T5)> as Service<Request<B>>>::Future
fn call( &mut self, req: Request<B>, ) -> <MapResponse<F, S, I, (T1, T2, T3, T4, T5)> as Service<Request<B>>>::Future
ยงimpl<F, Fut, S, I, B, ResBody, T1, T2, T3, T4, T5, T6> Service<Request<B>> for MapResponse<F, S, I, (T1, T2, T3, T4, T5, T6)>where
F: FnMut(T1, T2, T3, T4, T5, T6, Response<ResBody>) -> 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,
Fut: Future + Send + 'static,
<Fut as Future>::Output: IntoResponse + Send + 'static,
I: Service<Request<B>, Response = Response<ResBody>, Error = Infallible> + Clone + Send + 'static,
<I as Service<Request<B>>>::Future: Send + 'static,
B: Send + 'static,
ResBody: Send + 'static,
S: Clone + Send + Sync + 'static,
impl<F, Fut, S, I, B, ResBody, T1, T2, T3, T4, T5, T6> Service<Request<B>> for MapResponse<F, S, I, (T1, T2, T3, T4, T5, T6)>where
F: FnMut(T1, T2, T3, T4, T5, T6, Response<ResBody>) -> 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,
Fut: Future + Send + 'static,
<Fut as Future>::Output: IntoResponse + Send + 'static,
I: Service<Request<B>, Response = Response<ResBody>, Error = Infallible> + Clone + Send + 'static,
<I as Service<Request<B>>>::Future: Send + 'static,
B: Send + 'static,
ResBody: Send + 'static,
S: Clone + Send + Sync + 'static,
ยงtype Error = Infallible
type Error = Infallible
ยงtype Future = ResponseFuture
type Future = ResponseFuture
ยงfn poll_ready(
&mut self,
cx: &mut Context<'_>,
) -> Poll<Result<(), <MapResponse<F, S, I, (T1, T2, T3, T4, T5, T6)> as Service<Request<B>>>::Error>>
fn poll_ready( &mut self, cx: &mut Context<'_>, ) -> Poll<Result<(), <MapResponse<F, S, I, (T1, T2, T3, T4, T5, T6)> as Service<Request<B>>>::Error>>
Poll::Ready(Ok(()))
when the service is able to process requests. Read moreยงfn call(
&mut self,
req: Request<B>,
) -> <MapResponse<F, S, I, (T1, T2, T3, T4, T5, T6)> as Service<Request<B>>>::Future
fn call( &mut self, req: Request<B>, ) -> <MapResponse<F, S, I, (T1, T2, T3, T4, T5, T6)> as Service<Request<B>>>::Future
ยงimpl<F, Fut, S, I, B, ResBody, T1, T2, T3, T4, T5, T6, T7> Service<Request<B>> for MapResponse<F, S, I, (T1, T2, T3, T4, T5, T6, T7)>where
F: FnMut(T1, T2, T3, T4, T5, T6, T7, Response<ResBody>) -> 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,
Fut: Future + Send + 'static,
<Fut as Future>::Output: IntoResponse + Send + 'static,
I: Service<Request<B>, Response = Response<ResBody>, Error = Infallible> + Clone + Send + 'static,
<I as Service<Request<B>>>::Future: Send + 'static,
B: Send + 'static,
ResBody: Send + 'static,
S: Clone + Send + Sync + 'static,
impl<F, Fut, S, I, B, ResBody, T1, T2, T3, T4, T5, T6, T7> Service<Request<B>> for MapResponse<F, S, I, (T1, T2, T3, T4, T5, T6, T7)>where
F: FnMut(T1, T2, T3, T4, T5, T6, T7, Response<ResBody>) -> 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,
Fut: Future + Send + 'static,
<Fut as Future>::Output: IntoResponse + Send + 'static,
I: Service<Request<B>, Response = Response<ResBody>, Error = Infallible> + Clone + Send + 'static,
<I as Service<Request<B>>>::Future: Send + 'static,
B: Send + 'static,
ResBody: Send + 'static,
S: Clone + Send + Sync + 'static,
ยงtype Error = Infallible
type Error = Infallible
ยงtype Future = ResponseFuture
type Future = ResponseFuture
ยงfn poll_ready(
&mut self,
cx: &mut Context<'_>,
) -> Poll<Result<(), <MapResponse<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<(), <MapResponse<F, S, I, (T1, T2, T3, T4, T5, T6, T7)> as Service<Request<B>>>::Error>>
Poll::Ready(Ok(()))
when the service is able to process requests. Read moreยงfn call(
&mut self,
req: Request<B>,
) -> <MapResponse<F, S, I, (T1, T2, T3, T4, T5, T6, T7)> as Service<Request<B>>>::Future
fn call( &mut self, req: Request<B>, ) -> <MapResponse<F, S, I, (T1, T2, T3, T4, T5, T6, T7)> as Service<Request<B>>>::Future
ยงimpl<F, Fut, S, I, B, ResBody, T1, T2, T3, T4, T5, T6, T7, T8> Service<Request<B>> for MapResponse<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8)>where
F: FnMut(T1, T2, T3, T4, T5, T6, T7, T8, Response<ResBody>) -> 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,
Fut: Future + Send + 'static,
<Fut as Future>::Output: IntoResponse + Send + 'static,
I: Service<Request<B>, Response = Response<ResBody>, Error = Infallible> + Clone + Send + 'static,
<I as Service<Request<B>>>::Future: Send + 'static,
B: Send + 'static,
ResBody: Send + 'static,
S: Clone + Send + Sync + 'static,
impl<F, Fut, S, I, B, ResBody, T1, T2, T3, T4, T5, T6, T7, T8> Service<Request<B>> for MapResponse<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8)>where
F: FnMut(T1, T2, T3, T4, T5, T6, T7, T8, Response<ResBody>) -> 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,
Fut: Future + Send + 'static,
<Fut as Future>::Output: IntoResponse + Send + 'static,
I: Service<Request<B>, Response = Response<ResBody>, Error = Infallible> + Clone + Send + 'static,
<I as Service<Request<B>>>::Future: Send + 'static,
B: Send + 'static,
ResBody: Send + 'static,
S: Clone + Send + Sync + 'static,
ยงtype Error = Infallible
type Error = Infallible
ยงtype Future = ResponseFuture
type Future = ResponseFuture
ยงfn poll_ready(
&mut self,
cx: &mut Context<'_>,
) -> Poll<Result<(), <MapResponse<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<(), <MapResponse<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8)> as Service<Request<B>>>::Error>>
Poll::Ready(Ok(()))
when the service is able to process requests. Read moreยงfn call(
&mut self,
req: Request<B>,
) -> <MapResponse<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8)> as Service<Request<B>>>::Future
fn call( &mut self, req: Request<B>, ) -> <MapResponse<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8)> as Service<Request<B>>>::Future
ยงimpl<F, Fut, S, I, B, ResBody, T1, T2, T3, T4, T5, T6, T7, T8, T9> Service<Request<B>> for MapResponse<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9)>where
F: FnMut(T1, T2, T3, T4, T5, T6, T7, T8, T9, Response<ResBody>) -> 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,
Fut: Future + Send + 'static,
<Fut as Future>::Output: IntoResponse + Send + 'static,
I: Service<Request<B>, Response = Response<ResBody>, Error = Infallible> + Clone + Send + 'static,
<I as Service<Request<B>>>::Future: Send + 'static,
B: Send + 'static,
ResBody: Send + 'static,
S: Clone + Send + Sync + 'static,
impl<F, Fut, S, I, B, ResBody, T1, T2, T3, T4, T5, T6, T7, T8, T9> Service<Request<B>> for MapResponse<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9)>where
F: FnMut(T1, T2, T3, T4, T5, T6, T7, T8, T9, Response<ResBody>) -> 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,
Fut: Future + Send + 'static,
<Fut as Future>::Output: IntoResponse + Send + 'static,
I: Service<Request<B>, Response = Response<ResBody>, Error = Infallible> + Clone + Send + 'static,
<I as Service<Request<B>>>::Future: Send + 'static,
B: Send + 'static,
ResBody: Send + 'static,
S: Clone + Send + Sync + 'static,
ยงtype Error = Infallible
type Error = Infallible
ยงtype Future = ResponseFuture
type Future = ResponseFuture
ยงfn poll_ready(
&mut self,
cx: &mut Context<'_>,
) -> Poll<Result<(), <MapResponse<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<(), <MapResponse<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9)> as Service<Request<B>>>::Error>>
Poll::Ready(Ok(()))
when the service is able to process requests. Read moreยงfn call(
&mut self,
req: Request<B>,
) -> <MapResponse<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9)> as Service<Request<B>>>::Future
fn call( &mut self, req: Request<B>, ) -> <MapResponse<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9)> as Service<Request<B>>>::Future
ยงimpl<F, Fut, S, I, B, ResBody, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> Service<Request<B>> for MapResponse<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, Response<ResBody>) -> 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,
Fut: Future + Send + 'static,
<Fut as Future>::Output: IntoResponse + Send + 'static,
I: Service<Request<B>, Response = Response<ResBody>, Error = Infallible> + Clone + Send + 'static,
<I as Service<Request<B>>>::Future: Send + 'static,
B: Send + 'static,
ResBody: Send + 'static,
S: Clone + Send + Sync + 'static,
impl<F, Fut, S, I, B, ResBody, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> Service<Request<B>> for MapResponse<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, Response<ResBody>) -> 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,
Fut: Future + Send + 'static,
<Fut as Future>::Output: IntoResponse + Send + 'static,
I: Service<Request<B>, Response = Response<ResBody>, Error = Infallible> + Clone + Send + 'static,
<I as Service<Request<B>>>::Future: Send + 'static,
B: Send + 'static,
ResBody: Send + 'static,
S: Clone + Send + Sync + 'static,
ยงtype Error = Infallible
type Error = Infallible
ยงtype Future = ResponseFuture
type Future = ResponseFuture
ยงfn poll_ready(
&mut self,
cx: &mut Context<'_>,
) -> Poll<Result<(), <MapResponse<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<(), <MapResponse<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)> as Service<Request<B>>>::Error>>
Poll::Ready(Ok(()))
when the service is able to process requests. Read moreยงfn call(
&mut self,
req: Request<B>,
) -> <MapResponse<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>, ) -> <MapResponse<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)> as Service<Request<B>>>::Future
ยงimpl<F, Fut, S, I, B, ResBody, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> Service<Request<B>> for MapResponse<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, Response<ResBody>) -> 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,
Fut: Future + Send + 'static,
<Fut as Future>::Output: IntoResponse + Send + 'static,
I: Service<Request<B>, Response = Response<ResBody>, Error = Infallible> + Clone + Send + 'static,
<I as Service<Request<B>>>::Future: Send + 'static,
B: Send + 'static,
ResBody: Send + 'static,
S: Clone + Send + Sync + 'static,
impl<F, Fut, S, I, B, ResBody, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> Service<Request<B>> for MapResponse<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, Response<ResBody>) -> 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,
Fut: Future + Send + 'static,
<Fut as Future>::Output: IntoResponse + Send + 'static,
I: Service<Request<B>, Response = Response<ResBody>, Error = Infallible> + Clone + Send + 'static,
<I as Service<Request<B>>>::Future: Send + 'static,
B: Send + 'static,
ResBody: Send + 'static,
S: Clone + Send + Sync + 'static,
ยงtype Error = Infallible
type Error = Infallible
ยงtype Future = ResponseFuture
type Future = ResponseFuture
ยงfn poll_ready(
&mut self,
cx: &mut Context<'_>,
) -> Poll<Result<(), <MapResponse<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<(), <MapResponse<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)> as Service<Request<B>>>::Error>>
Poll::Ready(Ok(()))
when the service is able to process requests. Read moreยงfn call(
&mut self,
req: Request<B>,
) -> <MapResponse<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>, ) -> <MapResponse<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)> as Service<Request<B>>>::Future
ยงimpl<F, Fut, S, I, B, ResBody, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> Service<Request<B>> for MapResponse<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, Response<ResBody>) -> 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,
Fut: Future + Send + 'static,
<Fut as Future>::Output: IntoResponse + Send + 'static,
I: Service<Request<B>, Response = Response<ResBody>, Error = Infallible> + Clone + Send + 'static,
<I as Service<Request<B>>>::Future: Send + 'static,
B: Send + 'static,
ResBody: Send + 'static,
S: Clone + Send + Sync + 'static,
impl<F, Fut, S, I, B, ResBody, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> Service<Request<B>> for MapResponse<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, Response<ResBody>) -> 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,
Fut: Future + Send + 'static,
<Fut as Future>::Output: IntoResponse + Send + 'static,
I: Service<Request<B>, Response = Response<ResBody>, Error = Infallible> + Clone + Send + 'static,
<I as Service<Request<B>>>::Future: Send + 'static,
B: Send + 'static,
ResBody: Send + 'static,
S: Clone + Send + Sync + 'static,
ยงtype Error = Infallible
type Error = Infallible
ยงtype Future = ResponseFuture
type Future = ResponseFuture
ยงfn poll_ready(
&mut self,
cx: &mut Context<'_>,
) -> Poll<Result<(), <MapResponse<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<(), <MapResponse<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)> as Service<Request<B>>>::Error>>
Poll::Ready(Ok(()))
when the service is able to process requests. Read moreยงfn call(
&mut self,
req: Request<B>,
) -> <MapResponse<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>, ) -> <MapResponse<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)> as Service<Request<B>>>::Future
ยงimpl<F, Fut, S, I, B, ResBody, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13> Service<Request<B>> for MapResponse<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, Response<ResBody>) -> 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,
Fut: Future + Send + 'static,
<Fut as Future>::Output: IntoResponse + Send + 'static,
I: Service<Request<B>, Response = Response<ResBody>, Error = Infallible> + Clone + Send + 'static,
<I as Service<Request<B>>>::Future: Send + 'static,
B: Send + 'static,
ResBody: Send + 'static,
S: Clone + Send + Sync + 'static,
impl<F, Fut, S, I, B, ResBody, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13> Service<Request<B>> for MapResponse<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, Response<ResBody>) -> 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,
Fut: Future + Send + 'static,
<Fut as Future>::Output: IntoResponse + Send + 'static,
I: Service<Request<B>, Response = Response<ResBody>, Error = Infallible> + Clone + Send + 'static,
<I as Service<Request<B>>>::Future: Send + 'static,
B: Send + 'static,
ResBody: Send + 'static,
S: Clone + Send + Sync + 'static,
ยงtype Error = Infallible
type Error = Infallible
ยงtype Future = ResponseFuture
type Future = ResponseFuture
ยงfn poll_ready(
&mut self,
cx: &mut Context<'_>,
) -> Poll<Result<(), <MapResponse<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<(), <MapResponse<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13)> as Service<Request<B>>>::Error>>
Poll::Ready(Ok(()))
when the service is able to process requests. Read moreยงfn call(
&mut self,
req: Request<B>,
) -> <MapResponse<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>, ) -> <MapResponse<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13)> as Service<Request<B>>>::Future
ยงimpl<F, Fut, S, I, B, ResBody, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14> Service<Request<B>> for MapResponse<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, Response<ResBody>) -> 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,
Fut: Future + Send + 'static,
<Fut as Future>::Output: IntoResponse + Send + 'static,
I: Service<Request<B>, Response = Response<ResBody>, Error = Infallible> + Clone + Send + 'static,
<I as Service<Request<B>>>::Future: Send + 'static,
B: Send + 'static,
ResBody: Send + 'static,
S: Clone + Send + Sync + 'static,
impl<F, Fut, S, I, B, ResBody, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14> Service<Request<B>> for MapResponse<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, Response<ResBody>) -> 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,
Fut: Future + Send + 'static,
<Fut as Future>::Output: IntoResponse + Send + 'static,
I: Service<Request<B>, Response = Response<ResBody>, Error = Infallible> + Clone + Send + 'static,
<I as Service<Request<B>>>::Future: Send + 'static,
B: Send + 'static,
ResBody: Send + 'static,
S: Clone + Send + Sync + 'static,
ยงtype Error = Infallible
type Error = Infallible
ยงtype Future = ResponseFuture
type Future = ResponseFuture
ยงfn poll_ready(
&mut self,
cx: &mut Context<'_>,
) -> Poll<Result<(), <MapResponse<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<(), <MapResponse<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14)> as Service<Request<B>>>::Error>>
Poll::Ready(Ok(()))
when the service is able to process requests. Read moreยงfn call(
&mut self,
req: Request<B>,
) -> <MapResponse<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>, ) -> <MapResponse<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14)> as Service<Request<B>>>::Future
ยงimpl<F, Fut, S, I, B, ResBody, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> Service<Request<B>> for MapResponse<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, Response<ResBody>) -> 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,
Fut: Future + Send + 'static,
<Fut as Future>::Output: IntoResponse + Send + 'static,
I: Service<Request<B>, Response = Response<ResBody>, Error = Infallible> + Clone + Send + 'static,
<I as Service<Request<B>>>::Future: Send + 'static,
B: Send + 'static,
ResBody: Send + 'static,
S: Clone + Send + Sync + 'static,
impl<F, Fut, S, I, B, ResBody, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> Service<Request<B>> for MapResponse<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, Response<ResBody>) -> 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,
Fut: Future + Send + 'static,
<Fut as Future>::Output: IntoResponse + Send + 'static,
I: Service<Request<B>, Response = Response<ResBody>, Error = Infallible> + Clone + Send + 'static,
<I as Service<Request<B>>>::Future: Send + 'static,
B: Send + 'static,
ResBody: Send + 'static,
S: Clone + Send + Sync + 'static,
ยงtype Error = Infallible
type Error = Infallible
ยงtype Future = ResponseFuture
type Future = ResponseFuture
ยงfn poll_ready(
&mut self,
cx: &mut Context<'_>,
) -> Poll<Result<(), <MapResponse<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<(), <MapResponse<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15)> as Service<Request<B>>>::Error>>
Poll::Ready(Ok(()))
when the service is able to process requests. Read moreยงfn call(
&mut self,
req: Request<B>,
) -> <MapResponse<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>, ) -> <MapResponse<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15)> as Service<Request<B>>>::Future
ยงimpl<F, Fut, S, I, B, ResBody, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16> Service<Request<B>> for MapResponse<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, Response<ResBody>) -> 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: FromRequestParts<S> + Send,
Fut: Future + Send + 'static,
<Fut as Future>::Output: IntoResponse + Send + 'static,
I: Service<Request<B>, Response = Response<ResBody>, Error = Infallible> + Clone + Send + 'static,
<I as Service<Request<B>>>::Future: Send + 'static,
B: Send + 'static,
ResBody: Send + 'static,
S: Clone + Send + Sync + 'static,
impl<F, Fut, S, I, B, ResBody, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16> Service<Request<B>> for MapResponse<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, Response<ResBody>) -> 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: FromRequestParts<S> + Send,
Fut: Future + Send + 'static,
<Fut as Future>::Output: IntoResponse + Send + 'static,
I: Service<Request<B>, Response = Response<ResBody>, Error = Infallible> + Clone + Send + 'static,
<I as Service<Request<B>>>::Future: Send + 'static,
B: Send + 'static,
ResBody: Send + 'static,
S: Clone + Send + Sync + 'static,
ยงtype Error = Infallible
type Error = Infallible
ยงtype Future = ResponseFuture
type Future = ResponseFuture
ยงfn poll_ready(
&mut self,
cx: &mut Context<'_>,
) -> Poll<Result<(), <MapResponse<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<(), <MapResponse<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16)> as Service<Request<B>>>::Error>>
Poll::Ready(Ok(()))
when the service is able to process requests. Read moreยงfn call(
&mut self,
req: Request<B>,
) -> <MapResponse<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>, ) -> <MapResponse<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16)> as Service<Request<B>>>::Future
ยงimpl<B, E> Service<Request<B>> for MethodRouter<(), E>
impl<B, E> Service<Request<B>> for MethodRouter<(), E>
ยงtype Future = RouteFuture<E>
type Future = RouteFuture<E>
ยงfn poll_ready(
&mut self,
_cx: &mut Context<'_>,
) -> Poll<Result<(), <MethodRouter<(), E> as Service<Request<B>>>::Error>>
fn poll_ready( &mut self, _cx: &mut Context<'_>, ) -> Poll<Result<(), <MethodRouter<(), E> as Service<Request<B>>>::Error>>
Poll::Ready(Ok(()))
when the service is able to process requests. Read moreยงimpl<B, E> Service<Request<B>> for Route<E>
impl<B, E> Service<Request<B>> for Route<E>
ยงimpl<B> Service<Request<B>> for Router
impl<B> Service<Request<B>> for Router
ยงtype Error = Infallible
type Error = Infallible
ยงtype Future = RouteFuture<Infallible>
type Future = RouteFuture<Infallible>
ยงimpl<B> Service<Request<B>> for RouterAsService<'_, B>
impl<B> Service<Request<B>> for RouterAsService<'_, B>
ยงtype Error = Infallible
type Error = Infallible
ยงtype Future = RouteFuture<Infallible>
type Future = RouteFuture<Infallible>
ยงfn poll_ready(
&mut self,
cx: &mut Context<'_>,
) -> Poll<Result<(), <RouterAsService<'_, B> as Service<Request<B>>>::Error>>
fn poll_ready( &mut self, cx: &mut Context<'_>, ) -> Poll<Result<(), <RouterAsService<'_, B> as Service<Request<B>>>::Error>>
Poll::Ready(Ok(()))
when the service is able to process requests. Read moreยงimpl<B> Service<Request<B>> for RouterIntoService<B>
impl<B> Service<Request<B>> for RouterIntoService<B>
ยงtype Error = Infallible
type Error = Infallible
ยงtype Future = RouteFuture<Infallible>
type Future = RouteFuture<Infallible>
ยงfn poll_ready(
&mut self,
cx: &mut Context<'_>,
) -> Poll<Result<(), <RouterIntoService<B> as Service<Request<B>>>::Error>>
fn poll_ready( &mut self, cx: &mut Context<'_>, ) -> Poll<Result<(), <RouterIntoService<B> as Service<Request<B>>>::Error>>
Poll::Ready(Ok(()))
when the service is able to process requests. Read moreยงimpl Service<Request<Body>> for BoxedService<Request<Body>, Response<Body>>
impl Service<Request<Body>> for BoxedService<Request<Body>, Response<Body>>
ยงtype Error = ServerFnError
type Error = ServerFnError
ยงtype Future = Pin<Box<dyn Future<Output = Result<<BoxedService<Request<Body>, Response<Body>> as Service<Request<Body>>>::Response, <BoxedService<Request<Body>, Response<Body>> as Service<Request<Body>>>::Error>> + Send>>
type Future = Pin<Box<dyn Future<Output = Result<<BoxedService<Request<Body>, Response<Body>> as Service<Request<Body>>>::Response, <BoxedService<Request<Body>, Response<Body>> as Service<Request<Body>>>::Error>> + Send>>
ยงimpl<F, Fut, Out, S, I, T1> Service<Request<Body>> for FromFn<F, S, I, (T1,)>where
F: FnMut(T1, Next) -> Fut + Clone + Send + 'static,
T1: FromRequest<S> + Send,
Fut: Future<Output = Out> + Send + 'static,
Out: IntoResponse + 'static,
I: Service<Request<Body>, Error = Infallible> + Clone + Send + Sync + 'static,
<I as Service<Request<Body>>>::Response: IntoResponse,
<I as Service<Request<Body>>>::Future: Send + 'static,
S: Clone + Send + Sync + 'static,
impl<F, Fut, Out, S, I, T1> Service<Request<Body>> for FromFn<F, S, I, (T1,)>where
F: FnMut(T1, Next) -> Fut + Clone + Send + 'static,
T1: FromRequest<S> + Send,
Fut: Future<Output = Out> + Send + 'static,
Out: IntoResponse + 'static,
I: Service<Request<Body>, Error = Infallible> + Clone + Send + Sync + 'static,
<I as Service<Request<Body>>>::Response: IntoResponse,
<I as Service<Request<Body>>>::Future: Send + 'static,
S: Clone + Send + Sync + 'static,
ยงtype Error = Infallible
type Error = Infallible
ยงtype Future = ResponseFuture
type Future = ResponseFuture
ยงimpl<F, Fut, Out, S, I, T1, T2> Service<Request<Body>> for FromFn<F, S, I, (T1, T2)>where
F: FnMut(T1, T2, Next) -> Fut + Clone + Send + 'static,
T1: FromRequestParts<S> + Send,
T2: FromRequest<S> + Send,
Fut: Future<Output = Out> + Send + 'static,
Out: IntoResponse + 'static,
I: Service<Request<Body>, Error = Infallible> + Clone + Send + Sync + 'static,
<I as Service<Request<Body>>>::Response: IntoResponse,
<I as Service<Request<Body>>>::Future: Send + 'static,
S: Clone + Send + Sync + 'static,
impl<F, Fut, Out, S, I, T1, T2> Service<Request<Body>> for FromFn<F, S, I, (T1, T2)>where
F: FnMut(T1, T2, Next) -> Fut + Clone + Send + 'static,
T1: FromRequestParts<S> + Send,
T2: FromRequest<S> + Send,
Fut: Future<Output = Out> + Send + 'static,
Out: IntoResponse + 'static,
I: Service<Request<Body>, Error = Infallible> + Clone + Send + Sync + 'static,
<I as Service<Request<Body>>>::Response: IntoResponse,
<I as Service<Request<Body>>>::Future: Send + 'static,
S: Clone + Send + Sync + 'static,
ยงtype Error = Infallible
type Error = Infallible
ยงtype Future = ResponseFuture
type Future = ResponseFuture
ยงimpl<F, Fut, Out, S, I, T1, T2, T3> Service<Request<Body>> for FromFn<F, S, I, (T1, T2, T3)>where
F: FnMut(T1, T2, T3, Next) -> Fut + Clone + Send + 'static,
T1: FromRequestParts<S> + Send,
T2: FromRequestParts<S> + Send,
T3: FromRequest<S> + Send,
Fut: Future<Output = Out> + Send + 'static,
Out: IntoResponse + 'static,
I: Service<Request<Body>, Error = Infallible> + Clone + Send + Sync + 'static,
<I as Service<Request<Body>>>::Response: IntoResponse,
<I as Service<Request<Body>>>::Future: Send + 'static,
S: Clone + Send + Sync + 'static,
impl<F, Fut, Out, S, I, T1, T2, T3> Service<Request<Body>> for FromFn<F, S, I, (T1, T2, T3)>where
F: FnMut(T1, T2, T3, Next) -> Fut + Clone + Send + 'static,
T1: FromRequestParts<S> + Send,
T2: FromRequestParts<S> + Send,
T3: FromRequest<S> + Send,
Fut: Future<Output = Out> + Send + 'static,
Out: IntoResponse + 'static,
I: Service<Request<Body>, Error = Infallible> + Clone + Send + Sync + 'static,
<I as Service<Request<Body>>>::Response: IntoResponse,
<I as Service<Request<Body>>>::Future: Send + 'static,
S: Clone + Send + Sync + 'static,
ยงtype Error = Infallible
type Error = Infallible
ยงtype Future = ResponseFuture
type Future = ResponseFuture
ยงimpl<F, Fut, Out, S, I, T1, T2, T3, T4> Service<Request<Body>> for FromFn<F, S, I, (T1, T2, T3, T4)>where
F: FnMut(T1, T2, T3, T4, Next) -> Fut + Clone + Send + 'static,
T1: FromRequestParts<S> + Send,
T2: FromRequestParts<S> + Send,
T3: FromRequestParts<S> + Send,
T4: FromRequest<S> + Send,
Fut: Future<Output = Out> + Send + 'static,
Out: IntoResponse + 'static,
I: Service<Request<Body>, Error = Infallible> + Clone + Send + Sync + 'static,
<I as Service<Request<Body>>>::Response: IntoResponse,
<I as Service<Request<Body>>>::Future: Send + 'static,
S: Clone + Send + Sync + 'static,
impl<F, Fut, Out, S, I, T1, T2, T3, T4> Service<Request<Body>> for FromFn<F, S, I, (T1, T2, T3, T4)>where
F: FnMut(T1, T2, T3, T4, Next) -> Fut + Clone + Send + 'static,
T1: FromRequestParts<S> + Send,
T2: FromRequestParts<S> + Send,
T3: FromRequestParts<S> + Send,
T4: FromRequest<S> + Send,
Fut: Future<Output = Out> + Send + 'static,
Out: IntoResponse + 'static,
I: Service<Request<Body>, Error = Infallible> + Clone + Send + Sync + 'static,
<I as Service<Request<Body>>>::Response: IntoResponse,
<I as Service<Request<Body>>>::Future: Send + 'static,
S: Clone + Send + Sync + 'static,
ยงtype Error = Infallible
type Error = Infallible
ยงtype Future = ResponseFuture
type Future = ResponseFuture
ยงimpl<F, Fut, Out, S, I, T1, T2, T3, T4, T5> Service<Request<Body>> for FromFn<F, S, I, (T1, T2, T3, T4, T5)>where
F: FnMut(T1, T2, T3, T4, T5, Next) -> 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<Output = Out> + Send + 'static,
Out: IntoResponse + 'static,
I: Service<Request<Body>, Error = Infallible> + Clone + Send + Sync + 'static,
<I as Service<Request<Body>>>::Response: IntoResponse,
<I as Service<Request<Body>>>::Future: Send + 'static,
S: Clone + Send + Sync + 'static,
impl<F, Fut, Out, S, I, T1, T2, T3, T4, T5> Service<Request<Body>> for FromFn<F, S, I, (T1, T2, T3, T4, T5)>where
F: FnMut(T1, T2, T3, T4, T5, Next) -> 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<Output = Out> + Send + 'static,
Out: IntoResponse + 'static,
I: Service<Request<Body>, Error = Infallible> + Clone + Send + Sync + 'static,
<I as Service<Request<Body>>>::Response: IntoResponse,
<I as Service<Request<Body>>>::Future: Send + 'static,
S: Clone + Send + Sync + 'static,
ยงtype Error = Infallible
type Error = Infallible
ยงtype Future = ResponseFuture
type Future = ResponseFuture
ยงimpl<F, Fut, Out, S, I, T1, T2, T3, T4, T5, T6> Service<Request<Body>> for FromFn<F, S, I, (T1, T2, T3, T4, T5, T6)>where
F: FnMut(T1, T2, T3, T4, T5, T6, Next) -> 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<Output = Out> + Send + 'static,
Out: IntoResponse + 'static,
I: Service<Request<Body>, Error = Infallible> + Clone + Send + Sync + 'static,
<I as Service<Request<Body>>>::Response: IntoResponse,
<I as Service<Request<Body>>>::Future: Send + 'static,
S: Clone + Send + Sync + 'static,
impl<F, Fut, Out, S, I, T1, T2, T3, T4, T5, T6> Service<Request<Body>> for FromFn<F, S, I, (T1, T2, T3, T4, T5, T6)>where
F: FnMut(T1, T2, T3, T4, T5, T6, Next) -> 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<Output = Out> + Send + 'static,
Out: IntoResponse + 'static,
I: Service<Request<Body>, Error = Infallible> + Clone + Send + Sync + 'static,
<I as Service<Request<Body>>>::Response: IntoResponse,
<I as Service<Request<Body>>>::Future: Send + 'static,
S: Clone + Send + Sync + 'static,
ยงtype Error = Infallible
type Error = Infallible
ยงtype Future = ResponseFuture
type Future = ResponseFuture
ยงimpl<F, Fut, Out, S, I, T1, T2, T3, T4, T5, T6, T7> Service<Request<Body>> for FromFn<F, S, I, (T1, T2, T3, T4, T5, T6, T7)>where
F: FnMut(T1, T2, T3, T4, T5, T6, T7, Next) -> 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<Output = Out> + Send + 'static,
Out: IntoResponse + 'static,
I: Service<Request<Body>, Error = Infallible> + Clone + Send + Sync + 'static,
<I as Service<Request<Body>>>::Response: IntoResponse,
<I as Service<Request<Body>>>::Future: Send + 'static,
S: Clone + Send + Sync + 'static,
impl<F, Fut, Out, S, I, T1, T2, T3, T4, T5, T6, T7> Service<Request<Body>> for FromFn<F, S, I, (T1, T2, T3, T4, T5, T6, T7)>where
F: FnMut(T1, T2, T3, T4, T5, T6, T7, Next) -> 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<Output = Out> + Send + 'static,
Out: IntoResponse + 'static,
I: Service<Request<Body>, Error = Infallible> + Clone + Send + Sync + 'static,
<I as Service<Request<Body>>>::Response: IntoResponse,
<I as Service<Request<Body>>>::Future: Send + 'static,
S: Clone + Send + Sync + 'static,
ยงtype Error = Infallible
type Error = Infallible
ยงtype Future = ResponseFuture
type Future = ResponseFuture
ยงimpl<F, Fut, Out, S, I, T1, T2, T3, T4, T5, T6, T7, T8> Service<Request<Body>> for FromFn<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8)>where
F: FnMut(T1, T2, T3, T4, T5, T6, T7, T8, Next) -> 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<Output = Out> + Send + 'static,
Out: IntoResponse + 'static,
I: Service<Request<Body>, Error = Infallible> + Clone + Send + Sync + 'static,
<I as Service<Request<Body>>>::Response: IntoResponse,
<I as Service<Request<Body>>>::Future: Send + 'static,
S: Clone + Send + Sync + 'static,
impl<F, Fut, Out, S, I, T1, T2, T3, T4, T5, T6, T7, T8> Service<Request<Body>> for FromFn<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8)>where
F: FnMut(T1, T2, T3, T4, T5, T6, T7, T8, Next) -> 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<Output = Out> + Send + 'static,
Out: IntoResponse + 'static,
I: Service<Request<Body>, Error = Infallible> + Clone + Send + Sync + 'static,
<I as Service<Request<Body>>>::Response: IntoResponse,
<I as Service<Request<Body>>>::Future: Send + 'static,
S: Clone + Send + Sync + 'static,
ยงtype Error = Infallible
type Error = Infallible
ยงtype Future = ResponseFuture
type Future = ResponseFuture
ยงimpl<F, Fut, Out, S, I, T1, T2, T3, T4, T5, T6, T7, T8, T9> Service<Request<Body>> for FromFn<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9)>where
F: FnMut(T1, T2, T3, T4, T5, T6, T7, T8, T9, Next) -> 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<Output = Out> + Send + 'static,
Out: IntoResponse + 'static,
I: Service<Request<Body>, Error = Infallible> + Clone + Send + Sync + 'static,
<I as Service<Request<Body>>>::Response: IntoResponse,
<I as Service<Request<Body>>>::Future: Send + 'static,
S: Clone + Send + Sync + 'static,
impl<F, Fut, Out, S, I, T1, T2, T3, T4, T5, T6, T7, T8, T9> Service<Request<Body>> for FromFn<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9)>where
F: FnMut(T1, T2, T3, T4, T5, T6, T7, T8, T9, Next) -> 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<Output = Out> + Send + 'static,
Out: IntoResponse + 'static,
I: Service<Request<Body>, Error = Infallible> + Clone + Send + Sync + 'static,
<I as Service<Request<Body>>>::Response: IntoResponse,
<I as Service<Request<Body>>>::Future: Send + 'static,
S: Clone + Send + Sync + 'static,
ยงtype Error = Infallible
type Error = Infallible
ยงtype Future = ResponseFuture
type Future = ResponseFuture
ยงimpl<F, Fut, Out, S, I, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> Service<Request<Body>> for FromFn<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, Next) -> 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<Output = Out> + Send + 'static,
Out: IntoResponse + 'static,
I: Service<Request<Body>, Error = Infallible> + Clone + Send + Sync + 'static,
<I as Service<Request<Body>>>::Response: IntoResponse,
<I as Service<Request<Body>>>::Future: Send + 'static,
S: Clone + Send + Sync + 'static,
impl<F, Fut, Out, S, I, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> Service<Request<Body>> for FromFn<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, Next) -> 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<Output = Out> + Send + 'static,
Out: IntoResponse + 'static,
I: Service<Request<Body>, Error = Infallible> + Clone + Send + Sync + 'static,
<I as Service<Request<Body>>>::Response: IntoResponse,
<I as Service<Request<Body>>>::Future: Send + 'static,
S: Clone + Send + Sync + 'static,
ยงtype Error = Infallible
type Error = Infallible
ยงtype Future = ResponseFuture
type Future = ResponseFuture
ยงimpl<F, Fut, Out, S, I, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> Service<Request<Body>> for FromFn<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, Next) -> 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<Output = Out> + Send + 'static,
Out: IntoResponse + 'static,
I: Service<Request<Body>, Error = Infallible> + Clone + Send + Sync + 'static,
<I as Service<Request<Body>>>::Response: IntoResponse,
<I as Service<Request<Body>>>::Future: Send + 'static,
S: Clone + Send + Sync + 'static,
impl<F, Fut, Out, S, I, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> Service<Request<Body>> for FromFn<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, Next) -> 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<Output = Out> + Send + 'static,
Out: IntoResponse + 'static,
I: Service<Request<Body>, Error = Infallible> + Clone + Send + Sync + 'static,
<I as Service<Request<Body>>>::Response: IntoResponse,
<I as Service<Request<Body>>>::Future: Send + 'static,
S: Clone + Send + Sync + 'static,
ยงtype Error = Infallible
type Error = Infallible
ยงtype Future = ResponseFuture
type Future = ResponseFuture
ยงimpl<F, Fut, Out, S, I, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> Service<Request<Body>> for FromFn<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, Next) -> 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<Output = Out> + Send + 'static,
Out: IntoResponse + 'static,
I: Service<Request<Body>, Error = Infallible> + Clone + Send + Sync + 'static,
<I as Service<Request<Body>>>::Response: IntoResponse,
<I as Service<Request<Body>>>::Future: Send + 'static,
S: Clone + Send + Sync + 'static,
impl<F, Fut, Out, S, I, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> Service<Request<Body>> for FromFn<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, Next) -> 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<Output = Out> + Send + 'static,
Out: IntoResponse + 'static,
I: Service<Request<Body>, Error = Infallible> + Clone + Send + Sync + 'static,
<I as Service<Request<Body>>>::Response: IntoResponse,
<I as Service<Request<Body>>>::Future: Send + 'static,
S: Clone + Send + Sync + 'static,
ยงtype Error = Infallible
type Error = Infallible
ยงtype Future = ResponseFuture
type Future = ResponseFuture
ยงimpl<F, Fut, Out, S, I, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13> Service<Request<Body>> for FromFn<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, Next) -> 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<Output = Out> + Send + 'static,
Out: IntoResponse + 'static,
I: Service<Request<Body>, Error = Infallible> + Clone + Send + Sync + 'static,
<I as Service<Request<Body>>>::Response: IntoResponse,
<I as Service<Request<Body>>>::Future: Send + 'static,
S: Clone + Send + Sync + 'static,
impl<F, Fut, Out, S, I, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13> Service<Request<Body>> for FromFn<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, Next) -> 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<Output = Out> + Send + 'static,
Out: IntoResponse + 'static,
I: Service<Request<Body>, Error = Infallible> + Clone + Send + Sync + 'static,
<I as Service<Request<Body>>>::Response: IntoResponse,
<I as Service<Request<Body>>>::Future: Send + 'static,
S: Clone + Send + Sync + 'static,
ยงtype Error = Infallible
type Error = Infallible
ยงtype Future = ResponseFuture
type Future = ResponseFuture
ยงimpl<F, Fut, Out, S, I, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14> Service<Request<Body>> for FromFn<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, Next) -> 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<Output = Out> + Send + 'static,
Out: IntoResponse + 'static,
I: Service<Request<Body>, Error = Infallible> + Clone + Send + Sync + 'static,
<I as Service<Request<Body>>>::Response: IntoResponse,
<I as Service<Request<Body>>>::Future: Send + 'static,
S: Clone + Send + Sync + 'static,
impl<F, Fut, Out, S, I, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14> Service<Request<Body>> for FromFn<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, Next) -> 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<Output = Out> + Send + 'static,
Out: IntoResponse + 'static,
I: Service<Request<Body>, Error = Infallible> + Clone + Send + Sync + 'static,
<I as Service<Request<Body>>>::Response: IntoResponse,
<I as Service<Request<Body>>>::Future: Send + 'static,
S: Clone + Send + Sync + 'static,
ยงtype Error = Infallible
type Error = Infallible
ยงtype Future = ResponseFuture
type Future = ResponseFuture
ยงimpl<F, Fut, Out, S, I, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> Service<Request<Body>> for FromFn<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, Next) -> 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<Output = Out> + Send + 'static,
Out: IntoResponse + 'static,
I: Service<Request<Body>, Error = Infallible> + Clone + Send + Sync + 'static,
<I as Service<Request<Body>>>::Response: IntoResponse,
<I as Service<Request<Body>>>::Future: Send + 'static,
S: Clone + Send + Sync + 'static,
impl<F, Fut, Out, S, I, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> Service<Request<Body>> for FromFn<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, Next) -> 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<Output = Out> + Send + 'static,
Out: IntoResponse + 'static,
I: Service<Request<Body>, Error = Infallible> + Clone + Send + Sync + 'static,
<I as Service<Request<Body>>>::Response: IntoResponse,
<I as Service<Request<Body>>>::Future: Send + 'static,
S: Clone + Send + Sync + 'static,
ยงtype Error = Infallible
type Error = Infallible
ยงtype Future = ResponseFuture
type Future = ResponseFuture
ยงimpl<F, Fut, Out, S, I, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16> Service<Request<Body>> for FromFn<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, Next) -> 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<Output = Out> + Send + 'static,
Out: IntoResponse + 'static,
I: Service<Request<Body>, Error = Infallible> + Clone + Send + Sync + 'static,
<I as Service<Request<Body>>>::Response: IntoResponse,
<I as Service<Request<Body>>>::Future: Send + 'static,
S: Clone + Send + Sync + 'static,
impl<F, Fut, Out, S, I, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16> Service<Request<Body>> for FromFn<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, Next) -> 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<Output = Out> + Send + 'static,
Out: IntoResponse + 'static,
I: Service<Request<Body>, Error = Infallible> + Clone + Send + Sync + 'static,
<I as Service<Request<Body>>>::Response: IntoResponse,
<I as Service<Request<Body>>>::Future: Send + 'static,
S: Clone + Send + Sync + 'static,
ยงtype Error = Infallible
type Error = Infallible
ยงtype Future = ResponseFuture
type Future = ResponseFuture
ยงimpl Service<Request<Body>> for Next
impl Service<Request<Body>> for Next
ยงtype Error = Infallible
type Error = Infallible
ยงtype Future = Pin<Box<dyn Future<Output = Result<<Next as Service<Request<Body>>>::Response, <Next as Service<Request<Body>>>::Error>> + Send>>
type Future = Pin<Box<dyn Future<Output = Result<<Next as Service<Request<Body>>>::Response, <Next as Service<Request<Body>>>::Error>> + Send>>
ยงimpl<ResBody, S, T> Service<Request<ResBody>> for AddExtension<S, T>
impl<ResBody, S, T> Service<Request<ResBody>> for AddExtension<S, T>
ยงfn poll_ready(
&mut self,
cx: &mut Context<'_>,
) -> Poll<Result<(), <AddExtension<S, T> as Service<Request<ResBody>>>::Error>>
fn poll_ready( &mut self, cx: &mut Context<'_>, ) -> Poll<Result<(), <AddExtension<S, T> as Service<Request<ResBody>>>::Error>>
Poll::Ready(Ok(()))
when the service is able to process requests. Read moreAuto Trait Implementationsยง
impl<T> !Freeze for Request<T>
impl<T> !RefUnwindSafe for Request<T>
impl<T> Send for Request<T>where
T: Send,
impl<T> Sync for Request<T>where
T: Sync,
impl<T> Unpin for Request<T>where
T: Unpin,
impl<T> !UnwindSafe for Request<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>,
Sourceยงfn adapt_into(self) -> D
fn adapt_into(self) -> D
ยงimpl<T> ArchivePointee for T
impl<T> ArchivePointee for T
ยงtype ArchivedMetadata = ()
type ArchivedMetadata = ()
ยงfn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
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
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
ยงimpl<T> BodyExt for T
impl<T> BodyExt for T
ยงfn frame(&mut self) -> Frame<'_, Self> โwhere
Self: Unpin,
fn frame(&mut self) -> Frame<'_, Self> โwhere
Self: Unpin,
Frame
, if any.ยงfn map_err<F, E>(self, f: F) -> MapErr<Self, F>
fn map_err<F, E>(self, f: F) -> MapErr<Self, F>
ยงfn boxed_unsync(self) -> UnsyncBoxBody<Self::Data, Self::Error>
fn boxed_unsync(self) -> UnsyncBoxBody<Self::Data, Self::Error>
ยงfn collect(self) -> Collect<Self> โwhere
Self: Sized,
fn collect(self) -> Collect<Self> โwhere
Self: Sized,
Collected
] body which will collect all the DATA frames
and trailers.ยงfn with_trailers<F>(self, trailers: F) -> WithTrailers<Self, F>
fn with_trailers<F>(self, trailers: F) -> WithTrailers<Self, F>
ยงfn into_data_stream(self) -> BodyDataStream<Self>where
Self: Sized,
fn into_data_stream(self) -> BodyDataStream<Self>where
Self: Sized,
BodyDataStream
].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
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
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
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
ยง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>
ยง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>
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>
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)
&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)
&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
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
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
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
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
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
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
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> โ
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> โ
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
self
into T
, while performing the appropriate scaling,
rounding and clamping.ยง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<T> StorageAccess<T> for T
impl<T> StorageAccess<T> for T
ยงfn as_borrowed(&self) -> &T
fn as_borrowed(&self) -> &T
ยงfn into_taken(self) -> T
fn into_taken(self) -> T
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
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>
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>>
OutOfBounds
error is returned which contains
the unclamped color. Read more