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<()>

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
where T: TryInto<Uri>, <T as TryInto<Uri>>::Error: Into<Error>,

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
where T: TryInto<Uri>, <T as TryInto<Uri>>::Error: Into<Error>,

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
where T: TryInto<Uri>, <T as TryInto<Uri>>::Error: Into<Error>,

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
where T: TryInto<Uri>, <T as TryInto<Uri>>::Error: Into<Error>,

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
where T: TryInto<Uri>, <T as TryInto<Uri>>::Error: Into<Error>,

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
where T: TryInto<Uri>, <T as TryInto<Uri>>::Error: Into<Error>,

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
where T: TryInto<Uri>, <T as TryInto<Uri>>::Error: Into<Error>,

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
where T: TryInto<Uri>, <T as TryInto<Uri>>::Error: Into<Error>,

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();

pub fn trace<T>(uri: T) -> Builder
where T: TryInto<Uri>, <T as TryInto<Uri>>::Error: Into<Error>,

Creates a new Builder initialized with a TRACE method and the given URI.

This method returns an instance of Builder which can be used to create a Request.

ยงExample

let request = Request::trace("https://www.rust-lang.org/")
    .body(())
    .unwrap();
ยง

impl<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>

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

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

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

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

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

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

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

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

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

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

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

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

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

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)

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,

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<T> Clone for Request<T>
where T: Clone,

ยง

fn clone(&self) -> Request<T>

Returns a duplicate of the value. Read more
1.0.0 ยท Sourceยง

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
ยง

impl<T> Debug for Request<T>
where T: Debug,

ยง

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

Formats the value using the given formatter. Read more
ยง

impl<T> Default for Request<T>
where T: Default,

ยง

fn default() -> Request<T>

Returns the โ€œdefault valueโ€ for a type. Read more
ยง

impl<S> FromRequest<S> for Request<Body>
where S: Send + Sync,

ยง

type Rejection = Infallible

If the extractor fails itโ€™ll use this โ€œrejectionโ€ type. A rejection is a kind of error that can be converted into a response.
ยง

async fn from_request( req: Request<Body>, _: &S, ) -> Result<Request<Body>, <Request<Body> as FromRequest<S>>::Rejection>

Perform the extraction.
ยง

impl<B> Body for Request<B>
where B: Body,

ยง

type Data = <B as Body>::Data

Values yielded by the Body.
ยง

type Error = <B as Body>::Error

The error type this Body might generate.
ยง

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>>>

Attempt to pull out the next data buffer of this stream.
ยง

fn is_end_stream(&self) -> bool

Returns true when the end of stream has been reached. Read more
ยง

fn size_hint(&self) -> SizeHint

Returns the bounds on the remaining length of the stream. Read more
ยง

impl IntoClientRequest for Request<()>

ยง

fn into_client_request(self) -> Result<Request<()>, Error>

Convert into a Request that can be used for a client connection.
ยง

impl<B> IntoMapRequestResult<B> for Request<B>

ยง

fn into_map_request_result(self) -> Result<Request<B>, Response<Body>>

Perform the conversion.
ยง

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>

The response type for websockets.
ยง

fn as_query(&self) -> Option<&str>

Returns the query string of the requestโ€™s URL, starting after the ?.
ยง

fn to_content_type(&self) -> Option<Cow<'_, str>>

Returns the Content-Type header, if any.
ยง

fn accepts(&self) -> Option<Cow<'_, str>>

Returns the Accepts header, if any.
ยง

fn referer(&self) -> Option<Cow<'_, str>>

Returns the Referer header, if any.
ยง

async fn try_into_bytes(self) -> Result<Bytes, Error>

Attempts to extract the body of the request into Bytes.
ยง

async fn try_into_string(self) -> Result<String, Error>

Attempts to convert the body of the request into a string.
ยง

fn try_into_stream( self, ) -> Result<impl Stream<Item = Result<Bytes, Bytes>> + Send + 'static, Error>

Attempts to convert the body of the request into a stream of bytes.
ยง

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>

Attempts to convert the body of the request into a websocket handle.
ยง

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>

The response type for websockets.
ยง

async fn try_into_bytes(self) -> Result<Bytes, Error>

Attempts to extract the body of the request into Bytes.
ยง

async fn try_into_string(self) -> Result<String, Error>

Attempts to convert the body of the request into a string.
ยง

fn try_into_stream( self, ) -> Result<impl Stream<Item = Result<Bytes, Bytes>> + Send + 'static, Error>

Attempts to convert the body of the request into a stream of bytes.
ยง

fn to_content_type(&self) -> Option<Cow<'_, str>>

Returns the Content-Type header, if any.
ยง

fn accepts(&self) -> Option<Cow<'_, str>>

Returns the Accepts header, if any.
ยง

fn referer(&self) -> Option<Cow<'_, str>>

Returns the Referer header, if any.
ยง

fn as_query(&self) -> Option<&str>

Returns the query string of the requestโ€™s URL, starting after the ?.
ยง

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>

Attempts to convert the body of the request into a websocket handle.
ยง

impl RequestExt for Request<Body>

ยง

fn extract<E, M>( self, ) -> impl Future<Output = Result<E, <E as FromRequest<(), M>>::Rejection>> + Send
where E: FromRequest<(), M> + 'static, M: 'static,

Apply an extractor to this 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
where E: FromRequest<S, M> + 'static, S: Send + Sync,

Apply an extractor that requires some state to this Request. Read more
ยง

fn extract_parts<E>( &mut self, ) -> impl Future<Output = Result<E, <E as FromRequestParts<()>>::Rejection>> + Send
where E: FromRequestParts<()> + 'static,

Apply a parts extractor to this 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>
where E: FromRequestParts<S> + 'static, S: Send + Sync,

Apply a parts extractor that requires some state to this Request. Read more
ยง

fn with_limited_body(self) -> Request<Body>

ยง

fn into_limited_body(self) -> Body

Consumes the request, returning the body wrapped in [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,

ยง

type Response = Response<Body>

Responses given by the service.
ยง

type Error = <T as Service<Request<B>>>::Error

Errors produced by the service.
ยง

type Future = ResponseFuture<B, T, E, S>

The future response value.
ยง

fn poll_ready( &mut self, cx: &mut Context<'_>, ) -> Poll<Result<(), <FromExtractor<T, E, S> as Service<Request<B>>>::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
ยง

fn call( &mut self, req: Request<B>, ) -> <FromExtractor<T, E, S> as Service<Request<B>>>::Future

Process the request and return the response asynchronously. 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,

ยง

type Response = Response<Body>

Responses given by the service.
ยง

type Error = Infallible

Errors produced by the service.
ยง

type Future = HandleErrorFuture

The future response value.
ยง

fn poll_ready( &mut self, _: &mut Context<'_>, ) -> Poll<Result<(), <HandleError<S, F, ()> as Service<Request<B>>>::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
ยง

fn call( &mut self, req: Request<B>, ) -> <HandleError<S, F, ()> as Service<Request<B>>>::Future

Process the request and return the response asynchronously. 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,

ยง

type Response = Response<Body>

Responses given by the service.
ยง

type Error = Infallible

Errors produced by the service.
ยง

type Future = HandleErrorFuture

The future response value.
ยง

fn poll_ready( &mut self, _: &mut Context<'_>, ) -> Poll<Result<(), <HandleError<S, F, (T1,)> as Service<Request<B>>>::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
ยง

fn call( &mut self, req: Request<B>, ) -> <HandleError<S, F, (T1,)> as Service<Request<B>>>::Future

Process the request and return the response asynchronously. 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,

ยง

type Response = Response<Body>

Responses given by the service.
ยง

type Error = Infallible

Errors produced by the service.
ยง

type Future = HandleErrorFuture

The future response value.
ยง

fn poll_ready( &mut self, _: &mut Context<'_>, ) -> Poll<Result<(), <HandleError<S, F, (T1, T2)> as Service<Request<B>>>::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
ยง

fn call( &mut self, req: Request<B>, ) -> <HandleError<S, F, (T1, T2)> as Service<Request<B>>>::Future

Process the request and return the response asynchronously. 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,

ยง

type Response = Response<Body>

Responses given by the service.
ยง

type Error = Infallible

Errors produced by the service.
ยง

type Future = HandleErrorFuture

The future response value.
ยง

fn poll_ready( &mut self, _: &mut Context<'_>, ) -> Poll<Result<(), <HandleError<S, F, (T1, T2, T3)> as Service<Request<B>>>::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
ยง

fn call( &mut self, req: Request<B>, ) -> <HandleError<S, F, (T1, T2, T3)> as Service<Request<B>>>::Future

Process the request and return the response asynchronously. Read more
ยง

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 Response = Response<Body>

Responses given by the service.
ยง

type Error = Infallible

Errors produced by the service.
ยง

type Future = HandleErrorFuture

The future response value.
ยง

fn poll_ready( &mut self, _: &mut Context<'_>, ) -> Poll<Result<(), <HandleError<S, F, (T1, T2, T3, T4)> as Service<Request<B>>>::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
ยง

fn call( &mut self, req: Request<B>, ) -> <HandleError<S, F, (T1, T2, T3, T4)> as Service<Request<B>>>::Future

Process the request and return the response asynchronously. Read more
ยง

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 Response = Response<Body>

Responses given by the service.
ยง

type Error = Infallible

Errors produced by the service.
ยง

type Future = HandleErrorFuture

The future response value.
ยง

fn poll_ready( &mut self, _: &mut Context<'_>, ) -> Poll<Result<(), <HandleError<S, F, (T1, T2, T3, T4, T5)> as Service<Request<B>>>::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
ยง

fn call( &mut self, req: Request<B>, ) -> <HandleError<S, F, (T1, T2, T3, T4, T5)> as Service<Request<B>>>::Future

Process the request and return the response asynchronously. Read more
ยง

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 Response = Response<Body>

Responses given by the service.
ยง

type Error = Infallible

Errors produced by the service.
ยง

type Future = HandleErrorFuture

The future response value.
ยง

fn poll_ready( &mut self, _: &mut Context<'_>, ) -> Poll<Result<(), <HandleError<S, F, (T1, T2, T3, T4, T5, T6)> as Service<Request<B>>>::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
ยง

fn call( &mut self, req: Request<B>, ) -> <HandleError<S, F, (T1, T2, T3, T4, T5, T6)> as Service<Request<B>>>::Future

Process the request and return the response asynchronously. Read more
ยง

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 Response = Response<Body>

Responses given by the service.
ยง

type Error = Infallible

Errors produced by the service.
ยง

type Future = HandleErrorFuture

The future response value.
ยง

fn poll_ready( &mut self, _: &mut Context<'_>, ) -> Poll<Result<(), <HandleError<S, F, (T1, T2, T3, T4, T5, T6, T7)> as Service<Request<B>>>::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
ยง

fn call( &mut self, req: Request<B>, ) -> <HandleError<S, F, (T1, T2, T3, T4, T5, T6, T7)> as Service<Request<B>>>::Future

Process the request and return the response asynchronously. Read more
ยง

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 Response = Response<Body>

Responses given by the service.
ยง

type Error = Infallible

Errors produced by the service.
ยง

type Future = HandleErrorFuture

The future response value.
ยง

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>>

Returns 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

Process the request and return the response asynchronously. Read more
ยง

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 Response = Response<Body>

Responses given by the service.
ยง

type Error = Infallible

Errors produced by the service.
ยง

type Future = HandleErrorFuture

The future response value.
ยง

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>>

Returns 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

Process the request and return the response asynchronously. Read more
ยง

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 Response = Response<Body>

Responses given by the service.
ยง

type Error = Infallible

Errors produced by the service.
ยง

type Future = HandleErrorFuture

The future response value.
ยง

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>>

Returns 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

Process the request and return the response asynchronously. Read more
ยง

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 Response = Response<Body>

Responses given by the service.
ยง

type Error = Infallible

Errors produced by the service.
ยง

type Future = HandleErrorFuture

The future response value.
ยง

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>>

Returns 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

Process the request and return the response asynchronously. Read more
ยง

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 Response = Response<Body>

Responses given by the service.
ยง

type Error = Infallible

Errors produced by the service.
ยง

type Future = HandleErrorFuture

The future response value.
ยง

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>>

Returns 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

Process the request and return the response asynchronously. Read more
ยง

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 Response = Response<Body>

Responses given by the service.
ยง

type Error = Infallible

Errors produced by the service.
ยง

type Future = HandleErrorFuture

The future response value.
ยง

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>>

Returns 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

Process the request and return the response asynchronously. Read more
ยง

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 Response = Response<Body>

Responses given by the service.
ยง

type Error = Infallible

Errors produced by the service.
ยง

type Future = HandleErrorFuture

The future response value.
ยง

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>>

Returns 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

Process the request and return the response asynchronously. Read more
ยง

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 Response = Response<Body>

Responses given by the service.
ยง

type Error = Infallible

Errors produced by the service.
ยง

type Future = HandleErrorFuture

The future response value.
ยง

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>>

Returns 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

Process the request and return the response asynchronously. Read more
ยง

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 Response = Response<Body>

Responses given by the service.
ยง

type Error = Infallible

Errors produced by the service.
ยง

type Future = HandleErrorFuture

The future response value.
ยง

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>>

Returns 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

Process the request and return the response asynchronously. Read more
ยง

impl<H, T, S, B> Service<Request<B>> for HandlerService<H, T, S>
where H: Handler<T, S> + Clone + Send + 'static, B: Body<Data = Bytes> + Send + 'static, <B as Body>::Error: Into<Box<dyn Error + Send + Sync>>, S: Clone + Send + Sync,

ยง

type Response = Response<Body>

Responses given by the service.
ยง

type Error = Infallible

Errors produced by the service.
ยง

type Future = IntoServiceFuture<<H as Handler<T, S>>::Future>

The future response value.
ยง

fn poll_ready( &mut self, _cx: &mut Context<'_>, ) -> Poll<Result<(), <HandlerService<H, T, S> as Service<Request<B>>>::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
ยง

fn call( &mut self, req: Request<B>, ) -> <HandlerService<H, T, S> as Service<Request<B>>>::Future

Process the request and return the response asynchronously. 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,

ยง

type Response = Response<Body>

Responses given by the service.
ยง

type Error = Infallible

Errors produced by the service.
ยง

type Future = ResponseFuture

The future response value.
ยง

fn poll_ready( &mut self, cx: &mut Context<'_>, ) -> Poll<Result<(), <MapRequest<F, S, I, (T1,)> as Service<Request<B>>>::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
ยง

fn call( &mut self, req: Request<B>, ) -> <MapRequest<F, S, I, (T1,)> as Service<Request<B>>>::Future

Process the request and return the response asynchronously. 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,

ยง

type Response = Response<Body>

Responses given by the service.
ยง

type Error = Infallible

Errors produced by the service.
ยง

type Future = ResponseFuture

The future response value.
ยง

fn poll_ready( &mut self, cx: &mut Context<'_>, ) -> Poll<Result<(), <MapRequest<F, S, I, (T1, T2)> as Service<Request<B>>>::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
ยง

fn call( &mut self, req: Request<B>, ) -> <MapRequest<F, S, I, (T1, T2)> as Service<Request<B>>>::Future

Process the request and return the response asynchronously. 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,

ยง

type Response = Response<Body>

Responses given by the service.
ยง

type Error = Infallible

Errors produced by the service.
ยง

type Future = ResponseFuture

The future response value.
ยง

fn poll_ready( &mut self, cx: &mut Context<'_>, ) -> Poll<Result<(), <MapRequest<F, S, I, (T1, T2, T3)> as Service<Request<B>>>::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
ยง

fn call( &mut self, req: Request<B>, ) -> <MapRequest<F, S, I, (T1, T2, T3)> as Service<Request<B>>>::Future

Process the request and return the response asynchronously. Read more
ยง

impl<F, Fut, S, I, B, T1, T2, T3, T4> Service<Request<B>> for MapRequest<F, S, I, (T1, T2, T3, T4)>
where F: FnMut(T1, T2, T3, T4) -> Fut + Clone + Send + 'static, T1: FromRequestParts<S> + Send, T2: FromRequestParts<S> + Send, T3: FromRequestParts<S> + Send, T4: FromRequest<S> + Send, Fut: Future + Send + 'static, <Fut as Future>::Output: IntoMapRequestResult<B> + Send + 'static, I: Service<Request<B>, Error = Infallible> + Clone + Send + 'static, <I as Service<Request<B>>>::Response: IntoResponse, <I as Service<Request<B>>>::Future: Send + 'static, B: Body<Data = Bytes> + Send + 'static, <B as Body>::Error: Into<Box<dyn Error + Send + Sync>>, S: Clone + Send + Sync + 'static,

ยง

type Response = Response<Body>

Responses given by the service.
ยง

type Error = Infallible

Errors produced by the service.
ยง

type Future = ResponseFuture

The future response value.
ยง

fn poll_ready( &mut self, cx: &mut Context<'_>, ) -> Poll<Result<(), <MapRequest<F, S, I, (T1, T2, T3, T4)> as Service<Request<B>>>::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
ยง

fn call( &mut self, req: Request<B>, ) -> <MapRequest<F, S, I, (T1, T2, T3, T4)> as Service<Request<B>>>::Future

Process the request and return the response asynchronously. Read more
ยง

impl<F, Fut, S, I, B, T1, T2, T3, T4, T5> Service<Request<B>> for MapRequest<F, S, I, (T1, T2, T3, T4, T5)>
where F: FnMut(T1, T2, T3, T4, T5) -> Fut + Clone + Send + 'static, T1: FromRequestParts<S> + Send, T2: FromRequestParts<S> + Send, T3: FromRequestParts<S> + Send, T4: FromRequestParts<S> + Send, T5: FromRequest<S> + Send, Fut: Future + Send + 'static, <Fut as Future>::Output: IntoMapRequestResult<B> + Send + 'static, I: Service<Request<B>, Error = Infallible> + Clone + Send + 'static, <I as Service<Request<B>>>::Response: IntoResponse, <I as Service<Request<B>>>::Future: Send + 'static, B: Body<Data = Bytes> + Send + 'static, <B as Body>::Error: Into<Box<dyn Error + Send + Sync>>, S: Clone + Send + Sync + 'static,

ยง

type Response = Response<Body>

Responses given by the service.
ยง

type Error = Infallible

Errors produced by the service.
ยง

type Future = ResponseFuture

The future response value.
ยง

fn poll_ready( &mut self, cx: &mut Context<'_>, ) -> Poll<Result<(), <MapRequest<F, S, I, (T1, T2, T3, T4, T5)> as Service<Request<B>>>::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
ยง

fn call( &mut self, req: Request<B>, ) -> <MapRequest<F, S, I, (T1, T2, T3, T4, T5)> as Service<Request<B>>>::Future

Process the request and return the response asynchronously. Read more
ยง

impl<F, Fut, S, I, B, T1, T2, T3, T4, T5, T6> Service<Request<B>> for MapRequest<F, S, I, (T1, T2, T3, T4, T5, T6)>
where F: FnMut(T1, T2, T3, T4, T5, T6) -> Fut + Clone + Send + 'static, T1: FromRequestParts<S> + Send, T2: FromRequestParts<S> + Send, T3: FromRequestParts<S> + Send, T4: FromRequestParts<S> + Send, T5: FromRequestParts<S> + Send, T6: FromRequest<S> + Send, Fut: Future + Send + 'static, <Fut as Future>::Output: IntoMapRequestResult<B> + Send + 'static, I: Service<Request<B>, Error = Infallible> + Clone + Send + 'static, <I as Service<Request<B>>>::Response: IntoResponse, <I as Service<Request<B>>>::Future: Send + 'static, B: Body<Data = Bytes> + Send + 'static, <B as Body>::Error: Into<Box<dyn Error + Send + Sync>>, S: Clone + Send + Sync + 'static,

ยง

type Response = Response<Body>

Responses given by the service.
ยง

type Error = Infallible

Errors produced by the service.
ยง

type Future = ResponseFuture

The future response value.
ยง

fn poll_ready( &mut self, cx: &mut Context<'_>, ) -> Poll<Result<(), <MapRequest<F, S, I, (T1, T2, T3, T4, T5, T6)> as Service<Request<B>>>::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
ยง

fn call( &mut self, req: Request<B>, ) -> <MapRequest<F, S, I, (T1, T2, T3, T4, T5, T6)> as Service<Request<B>>>::Future

Process the request and return the response asynchronously. Read more
ยง

impl<F, Fut, S, I, B, T1, T2, T3, T4, T5, T6, T7> Service<Request<B>> for MapRequest<F, S, I, (T1, T2, T3, T4, T5, T6, T7)>
where F: FnMut(T1, T2, T3, T4, T5, T6, T7) -> Fut + Clone + Send + 'static, T1: FromRequestParts<S> + Send, T2: FromRequestParts<S> + Send, T3: FromRequestParts<S> + Send, T4: FromRequestParts<S> + Send, T5: FromRequestParts<S> + Send, T6: FromRequestParts<S> + Send, T7: FromRequest<S> + Send, Fut: Future + Send + 'static, <Fut as Future>::Output: IntoMapRequestResult<B> + Send + 'static, I: Service<Request<B>, Error = Infallible> + Clone + Send + 'static, <I as Service<Request<B>>>::Response: IntoResponse, <I as Service<Request<B>>>::Future: Send + 'static, B: Body<Data = Bytes> + Send + 'static, <B as Body>::Error: Into<Box<dyn Error + Send + Sync>>, S: Clone + Send + Sync + 'static,

ยง

type Response = Response<Body>

Responses given by the service.
ยง

type Error = Infallible

Errors produced by the service.
ยง

type Future = ResponseFuture

The future response value.
ยง

fn poll_ready( &mut self, cx: &mut Context<'_>, ) -> Poll<Result<(), <MapRequest<F, S, I, (T1, T2, T3, T4, T5, T6, T7)> as Service<Request<B>>>::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
ยง

fn call( &mut self, req: Request<B>, ) -> <MapRequest<F, S, I, (T1, T2, T3, T4, T5, T6, T7)> as Service<Request<B>>>::Future

Process the request and return the response asynchronously. Read more
ยง

impl<F, Fut, S, I, B, T1, T2, T3, T4, T5, T6, T7, T8> Service<Request<B>> for MapRequest<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8)>
where F: FnMut(T1, T2, T3, T4, T5, T6, T7, T8) -> Fut + Clone + Send + 'static, T1: FromRequestParts<S> + Send, T2: FromRequestParts<S> + Send, T3: FromRequestParts<S> + Send, T4: FromRequestParts<S> + Send, T5: FromRequestParts<S> + Send, T6: FromRequestParts<S> + Send, T7: FromRequestParts<S> + Send, T8: FromRequest<S> + Send, Fut: Future + Send + 'static, <Fut as Future>::Output: IntoMapRequestResult<B> + Send + 'static, I: Service<Request<B>, Error = Infallible> + Clone + Send + 'static, <I as Service<Request<B>>>::Response: IntoResponse, <I as Service<Request<B>>>::Future: Send + 'static, B: Body<Data = Bytes> + Send + 'static, <B as Body>::Error: Into<Box<dyn Error + Send + Sync>>, S: Clone + Send + Sync + 'static,

ยง

type Response = Response<Body>

Responses given by the service.
ยง

type Error = Infallible

Errors produced by the service.
ยง

type Future = ResponseFuture

The future response value.
ยง

fn poll_ready( &mut self, cx: &mut Context<'_>, ) -> Poll<Result<(), <MapRequest<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8)> as Service<Request<B>>>::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
ยง

fn call( &mut self, req: Request<B>, ) -> <MapRequest<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8)> as Service<Request<B>>>::Future

Process the request and return the response asynchronously. Read more
ยง

impl<F, Fut, S, I, B, T1, T2, T3, T4, T5, T6, T7, T8, T9> Service<Request<B>> for MapRequest<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9)>
where F: FnMut(T1, T2, T3, T4, T5, T6, T7, T8, T9) -> Fut + Clone + Send + 'static, T1: FromRequestParts<S> + Send, T2: FromRequestParts<S> + Send, T3: FromRequestParts<S> + Send, T4: FromRequestParts<S> + Send, T5: FromRequestParts<S> + Send, T6: FromRequestParts<S> + Send, T7: FromRequestParts<S> + Send, T8: FromRequestParts<S> + Send, T9: FromRequest<S> + Send, Fut: Future + Send + 'static, <Fut as Future>::Output: IntoMapRequestResult<B> + Send + 'static, I: Service<Request<B>, Error = Infallible> + Clone + Send + 'static, <I as Service<Request<B>>>::Response: IntoResponse, <I as Service<Request<B>>>::Future: Send + 'static, B: Body<Data = Bytes> + Send + 'static, <B as Body>::Error: Into<Box<dyn Error + Send + Sync>>, S: Clone + Send + Sync + 'static,

ยง

type Response = Response<Body>

Responses given by the service.
ยง

type Error = Infallible

Errors produced by the service.
ยง

type Future = ResponseFuture

The future response value.
ยง

fn poll_ready( &mut self, cx: &mut Context<'_>, ) -> Poll<Result<(), <MapRequest<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9)> as Service<Request<B>>>::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
ยง

fn call( &mut self, req: Request<B>, ) -> <MapRequest<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9)> as Service<Request<B>>>::Future

Process the request and return the response asynchronously. Read more
ยง

impl<F, Fut, S, I, B, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> Service<Request<B>> for MapRequest<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)>
where F: FnMut(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10) -> Fut + Clone + Send + 'static, T1: FromRequestParts<S> + Send, T2: FromRequestParts<S> + Send, T3: FromRequestParts<S> + Send, T4: FromRequestParts<S> + Send, T5: FromRequestParts<S> + Send, T6: FromRequestParts<S> + Send, T7: FromRequestParts<S> + Send, T8: FromRequestParts<S> + Send, T9: FromRequestParts<S> + Send, T10: FromRequest<S> + Send, Fut: Future + Send + 'static, <Fut as Future>::Output: IntoMapRequestResult<B> + Send + 'static, I: Service<Request<B>, Error = Infallible> + Clone + Send + 'static, <I as Service<Request<B>>>::Response: IntoResponse, <I as Service<Request<B>>>::Future: Send + 'static, B: Body<Data = Bytes> + Send + 'static, <B as Body>::Error: Into<Box<dyn Error + Send + Sync>>, S: Clone + Send + Sync + 'static,

ยง

type Response = Response<Body>

Responses given by the service.
ยง

type Error = Infallible

Errors produced by the service.
ยง

type Future = ResponseFuture

The future response value.
ยง

fn poll_ready( &mut self, cx: &mut Context<'_>, ) -> Poll<Result<(), <MapRequest<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)> as Service<Request<B>>>::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
ยง

fn call( &mut self, req: Request<B>, ) -> <MapRequest<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)> as Service<Request<B>>>::Future

Process the request and return the response asynchronously. Read more
ยง

impl<F, Fut, S, I, B, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> Service<Request<B>> for MapRequest<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)>
where F: FnMut(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11) -> Fut + Clone + Send + 'static, T1: FromRequestParts<S> + Send, T2: FromRequestParts<S> + Send, T3: FromRequestParts<S> + Send, T4: FromRequestParts<S> + Send, T5: FromRequestParts<S> + Send, T6: FromRequestParts<S> + Send, T7: FromRequestParts<S> + Send, T8: FromRequestParts<S> + Send, T9: FromRequestParts<S> + Send, T10: FromRequestParts<S> + Send, T11: FromRequest<S> + Send, Fut: Future + Send + 'static, <Fut as Future>::Output: IntoMapRequestResult<B> + Send + 'static, I: Service<Request<B>, Error = Infallible> + Clone + Send + 'static, <I as Service<Request<B>>>::Response: IntoResponse, <I as Service<Request<B>>>::Future: Send + 'static, B: Body<Data = Bytes> + Send + 'static, <B as Body>::Error: Into<Box<dyn Error + Send + Sync>>, S: Clone + Send + Sync + 'static,

ยง

type Response = Response<Body>

Responses given by the service.
ยง

type Error = Infallible

Errors produced by the service.
ยง

type Future = ResponseFuture

The future response value.
ยง

fn poll_ready( &mut self, cx: &mut Context<'_>, ) -> Poll<Result<(), <MapRequest<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)> as Service<Request<B>>>::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
ยง

fn call( &mut self, req: Request<B>, ) -> <MapRequest<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)> as Service<Request<B>>>::Future

Process the request and return the response asynchronously. Read more
ยง

impl<F, Fut, S, I, B, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> Service<Request<B>> for MapRequest<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)>
where F: FnMut(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12) -> Fut + Clone + Send + 'static, T1: FromRequestParts<S> + Send, T2: FromRequestParts<S> + Send, T3: FromRequestParts<S> + Send, T4: FromRequestParts<S> + Send, T5: FromRequestParts<S> + Send, T6: FromRequestParts<S> + Send, T7: FromRequestParts<S> + Send, T8: FromRequestParts<S> + Send, T9: FromRequestParts<S> + Send, T10: FromRequestParts<S> + Send, T11: FromRequestParts<S> + Send, T12: FromRequest<S> + Send, Fut: Future + Send + 'static, <Fut as Future>::Output: IntoMapRequestResult<B> + Send + 'static, I: Service<Request<B>, Error = Infallible> + Clone + Send + 'static, <I as Service<Request<B>>>::Response: IntoResponse, <I as Service<Request<B>>>::Future: Send + 'static, B: Body<Data = Bytes> + Send + 'static, <B as Body>::Error: Into<Box<dyn Error + Send + Sync>>, S: Clone + Send + Sync + 'static,

ยง

type Response = Response<Body>

Responses given by the service.
ยง

type Error = Infallible

Errors produced by the service.
ยง

type Future = ResponseFuture

The future response value.
ยง

fn poll_ready( &mut self, cx: &mut Context<'_>, ) -> Poll<Result<(), <MapRequest<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)> as Service<Request<B>>>::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
ยง

fn call( &mut self, req: Request<B>, ) -> <MapRequest<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)> as Service<Request<B>>>::Future

Process the request and return the response asynchronously. Read more
ยง

impl<F, Fut, S, I, B, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13> Service<Request<B>> for MapRequest<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13)>
where F: FnMut(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13) -> Fut + Clone + Send + 'static, T1: FromRequestParts<S> + Send, T2: FromRequestParts<S> + Send, T3: FromRequestParts<S> + Send, T4: FromRequestParts<S> + Send, T5: FromRequestParts<S> + Send, T6: FromRequestParts<S> + Send, T7: FromRequestParts<S> + Send, T8: FromRequestParts<S> + Send, T9: FromRequestParts<S> + Send, T10: FromRequestParts<S> + Send, T11: FromRequestParts<S> + Send, T12: FromRequestParts<S> + Send, T13: FromRequest<S> + Send, Fut: Future + Send + 'static, <Fut as Future>::Output: IntoMapRequestResult<B> + Send + 'static, I: Service<Request<B>, Error = Infallible> + Clone + Send + 'static, <I as Service<Request<B>>>::Response: IntoResponse, <I as Service<Request<B>>>::Future: Send + 'static, B: Body<Data = Bytes> + Send + 'static, <B as Body>::Error: Into<Box<dyn Error + Send + Sync>>, S: Clone + Send + Sync + 'static,

ยง

type Response = Response<Body>

Responses given by the service.
ยง

type Error = Infallible

Errors produced by the service.
ยง

type Future = ResponseFuture

The future response value.
ยง

fn poll_ready( &mut self, cx: &mut Context<'_>, ) -> Poll<Result<(), <MapRequest<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13)> as Service<Request<B>>>::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
ยง

fn call( &mut self, req: Request<B>, ) -> <MapRequest<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13)> as Service<Request<B>>>::Future

Process the request and return the response asynchronously. Read more
ยง

impl<F, Fut, S, I, B, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14> Service<Request<B>> for MapRequest<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14)>
where F: FnMut(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14) -> Fut + Clone + Send + 'static, T1: FromRequestParts<S> + Send, T2: FromRequestParts<S> + Send, T3: FromRequestParts<S> + Send, T4: FromRequestParts<S> + Send, T5: FromRequestParts<S> + Send, T6: FromRequestParts<S> + Send, T7: FromRequestParts<S> + Send, T8: FromRequestParts<S> + Send, T9: FromRequestParts<S> + Send, T10: FromRequestParts<S> + Send, T11: FromRequestParts<S> + Send, T12: FromRequestParts<S> + Send, T13: FromRequestParts<S> + Send, T14: FromRequest<S> + Send, Fut: Future + Send + 'static, <Fut as Future>::Output: IntoMapRequestResult<B> + Send + 'static, I: Service<Request<B>, Error = Infallible> + Clone + Send + 'static, <I as Service<Request<B>>>::Response: IntoResponse, <I as Service<Request<B>>>::Future: Send + 'static, B: Body<Data = Bytes> + Send + 'static, <B as Body>::Error: Into<Box<dyn Error + Send + Sync>>, S: Clone + Send + Sync + 'static,

ยง

type Response = Response<Body>

Responses given by the service.
ยง

type Error = Infallible

Errors produced by the service.
ยง

type Future = ResponseFuture

The future response value.
ยง

fn poll_ready( &mut self, cx: &mut Context<'_>, ) -> Poll<Result<(), <MapRequest<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14)> as Service<Request<B>>>::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
ยง

fn call( &mut self, req: Request<B>, ) -> <MapRequest<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14)> as Service<Request<B>>>::Future

Process the request and return the response asynchronously. Read more
ยง

impl<F, Fut, S, I, B, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> Service<Request<B>> for MapRequest<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15)>
where F: FnMut(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15) -> Fut + Clone + Send + 'static, T1: FromRequestParts<S> + Send, T2: FromRequestParts<S> + Send, T3: FromRequestParts<S> + Send, T4: FromRequestParts<S> + Send, T5: FromRequestParts<S> + Send, T6: FromRequestParts<S> + Send, T7: FromRequestParts<S> + Send, T8: FromRequestParts<S> + Send, T9: FromRequestParts<S> + Send, T10: FromRequestParts<S> + Send, T11: FromRequestParts<S> + Send, T12: FromRequestParts<S> + Send, T13: FromRequestParts<S> + Send, T14: FromRequestParts<S> + Send, T15: FromRequest<S> + Send, Fut: Future + Send + 'static, <Fut as Future>::Output: IntoMapRequestResult<B> + Send + 'static, I: Service<Request<B>, Error = Infallible> + Clone + Send + 'static, <I as Service<Request<B>>>::Response: IntoResponse, <I as Service<Request<B>>>::Future: Send + 'static, B: Body<Data = Bytes> + Send + 'static, <B as Body>::Error: Into<Box<dyn Error + Send + Sync>>, S: Clone + Send + Sync + 'static,

ยง

type Response = Response<Body>

Responses given by the service.
ยง

type Error = Infallible

Errors produced by the service.
ยง

type Future = ResponseFuture

The future response value.
ยง

fn poll_ready( &mut self, cx: &mut Context<'_>, ) -> Poll<Result<(), <MapRequest<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15)> as Service<Request<B>>>::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
ยง

fn call( &mut self, req: Request<B>, ) -> <MapRequest<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15)> as Service<Request<B>>>::Future

Process the request and return the response asynchronously. Read more
ยง

impl<F, Fut, S, I, B, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16> Service<Request<B>> for MapRequest<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16)>
where F: FnMut(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16) -> Fut + Clone + Send + 'static, T1: FromRequestParts<S> + Send, T2: FromRequestParts<S> + Send, T3: FromRequestParts<S> + Send, T4: FromRequestParts<S> + Send, T5: FromRequestParts<S> + Send, T6: FromRequestParts<S> + Send, T7: FromRequestParts<S> + Send, T8: FromRequestParts<S> + Send, T9: FromRequestParts<S> + Send, T10: FromRequestParts<S> + Send, T11: FromRequestParts<S> + Send, T12: FromRequestParts<S> + Send, T13: FromRequestParts<S> + Send, T14: FromRequestParts<S> + Send, T15: FromRequestParts<S> + Send, T16: FromRequest<S> + Send, Fut: Future + Send + 'static, <Fut as Future>::Output: IntoMapRequestResult<B> + Send + 'static, I: Service<Request<B>, Error = Infallible> + Clone + Send + 'static, <I as Service<Request<B>>>::Response: IntoResponse, <I as Service<Request<B>>>::Future: Send + 'static, B: Body<Data = Bytes> + Send + 'static, <B as Body>::Error: Into<Box<dyn Error + Send + Sync>>, S: Clone + Send + Sync + 'static,

ยง

type Response = Response<Body>

Responses given by the service.
ยง

type Error = Infallible

Errors produced by the service.
ยง

type Future = ResponseFuture

The future response value.
ยง

fn poll_ready( &mut self, cx: &mut Context<'_>, ) -> Poll<Result<(), <MapRequest<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16)> as Service<Request<B>>>::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
ยง

fn call( &mut self, req: Request<B>, ) -> <MapRequest<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16)> as Service<Request<B>>>::Future

Process the request and return the response asynchronously. Read more
ยง

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 Response = Response<Body>

Responses given by the service.
ยง

type Error = Infallible

Errors produced by the service.
ยง

type Future = ResponseFuture

The future response value.
ยง

fn poll_ready( &mut self, cx: &mut Context<'_>, ) -> Poll<Result<(), <MapResponse<F, S, I, ()> as Service<Request<B>>>::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
ยง

fn call( &mut self, req: Request<B>, ) -> <MapResponse<F, S, I, ()> as Service<Request<B>>>::Future

Process the request and return the response asynchronously. 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,

ยง

type Response = Response<Body>

Responses given by the service.
ยง

type Error = Infallible

Errors produced by the service.
ยง

type Future = ResponseFuture

The future response value.
ยง

fn poll_ready( &mut self, cx: &mut Context<'_>, ) -> Poll<Result<(), <MapResponse<F, S, I, (T1,)> as Service<Request<B>>>::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
ยง

fn call( &mut self, req: Request<B>, ) -> <MapResponse<F, S, I, (T1,)> as Service<Request<B>>>::Future

Process the request and return the response asynchronously. 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,

ยง

type Response = Response<Body>

Responses given by the service.
ยง

type Error = Infallible

Errors produced by the service.
ยง

type Future = ResponseFuture

The future response value.
ยง

fn poll_ready( &mut self, cx: &mut Context<'_>, ) -> Poll<Result<(), <MapResponse<F, S, I, (T1, T2)> as Service<Request<B>>>::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
ยง

fn call( &mut self, req: Request<B>, ) -> <MapResponse<F, S, I, (T1, T2)> as Service<Request<B>>>::Future

Process the request and return the response asynchronously. 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,

ยง

type Response = Response<Body>

Responses given by the service.
ยง

type Error = Infallible

Errors produced by the service.
ยง

type Future = ResponseFuture

The future response value.
ยง

fn poll_ready( &mut self, cx: &mut Context<'_>, ) -> Poll<Result<(), <MapResponse<F, S, I, (T1, T2, T3)> as Service<Request<B>>>::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
ยง

fn call( &mut self, req: Request<B>, ) -> <MapResponse<F, S, I, (T1, T2, T3)> as Service<Request<B>>>::Future

Process the request and return the response asynchronously. Read more
ยง

impl<F, Fut, S, I, B, 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 Response = Response<Body>

Responses given by the service.
ยง

type Error = Infallible

Errors produced by the service.
ยง

type Future = ResponseFuture

The future response value.
ยง

fn poll_ready( &mut self, cx: &mut Context<'_>, ) -> Poll<Result<(), <MapResponse<F, S, I, (T1, T2, T3, T4)> as Service<Request<B>>>::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
ยง

fn call( &mut self, req: Request<B>, ) -> <MapResponse<F, S, I, (T1, T2, T3, T4)> as Service<Request<B>>>::Future

Process the request and return the response asynchronously. Read more
ยง

impl<F, Fut, S, I, B, 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 Response = Response<Body>

Responses given by the service.
ยง

type Error = Infallible

Errors produced by the service.
ยง

type Future = ResponseFuture

The future response value.
ยง

fn poll_ready( &mut self, cx: &mut Context<'_>, ) -> Poll<Result<(), <MapResponse<F, S, I, (T1, T2, T3, T4, T5)> as Service<Request<B>>>::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
ยง

fn call( &mut self, req: Request<B>, ) -> <MapResponse<F, S, I, (T1, T2, T3, T4, T5)> as Service<Request<B>>>::Future

Process the request and return the response asynchronously. Read more
ยง

impl<F, Fut, S, I, B, 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 Response = Response<Body>

Responses given by the service.
ยง

type Error = Infallible

Errors produced by the service.
ยง

type Future = ResponseFuture

The future response value.
ยง

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>>

Returns 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

Process the request and return the response asynchronously. Read more
ยง

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 Response = Response<Body>

Responses given by the service.
ยง

type Error = Infallible

Errors produced by the service.
ยง

type Future = ResponseFuture

The future response value.
ยง

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>>

Returns 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

Process the request and return the response asynchronously. Read more
ยง

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 Response = Response<Body>

Responses given by the service.
ยง

type Error = Infallible

Errors produced by the service.
ยง

type Future = ResponseFuture

The future response value.
ยง

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>>

Returns 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

Process the request and return the response asynchronously. Read more
ยง

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 Response = Response<Body>

Responses given by the service.
ยง

type Error = Infallible

Errors produced by the service.
ยง

type Future = ResponseFuture

The future response value.
ยง

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>>

Returns 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

Process the request and return the response asynchronously. Read more
ยง

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 Response = Response<Body>

Responses given by the service.
ยง

type Error = Infallible

Errors produced by the service.
ยง

type Future = ResponseFuture

The future response value.
ยง

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>>

Returns 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

Process the request and return the response asynchronously. Read more
ยง

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 Response = Response<Body>

Responses given by the service.
ยง

type Error = Infallible

Errors produced by the service.
ยง

type Future = ResponseFuture

The future response value.
ยง

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>>

Returns 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

Process the request and return the response asynchronously. Read more
ยง

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 Response = Response<Body>

Responses given by the service.
ยง

type Error = Infallible

Errors produced by the service.
ยง

type Future = ResponseFuture

The future response value.
ยง

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>>

Returns 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

Process the request and return the response asynchronously. Read more
ยง

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 Response = Response<Body>

Responses given by the service.
ยง

type Error = Infallible

Errors produced by the service.
ยง

type Future = ResponseFuture

The future response value.
ยง

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>>

Returns 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

Process the request and return the response asynchronously. Read more
ยง

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 Response = Response<Body>

Responses given by the service.
ยง

type Error = Infallible

Errors produced by the service.
ยง

type Future = ResponseFuture

The future response value.
ยง

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>>

Returns 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

Process the request and return the response asynchronously. Read more
ยง

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 Response = Response<Body>

Responses given by the service.
ยง

type Error = Infallible

Errors produced by the service.
ยง

type Future = ResponseFuture

The future response value.
ยง

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>>

Returns 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

Process the request and return the response asynchronously. Read more
ยง

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 Response = Response<Body>

Responses given by the service.
ยง

type Error = Infallible

Errors produced by the service.
ยง

type Future = ResponseFuture

The future response value.
ยง

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>>

Returns 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

Process the request and return the response asynchronously. Read more
ยง

impl<B, E> Service<Request<B>> for MethodRouter<(), E>
where B: Body<Data = Bytes> + Send + 'static, <B as Body>::Error: Into<Box<dyn Error + Send + Sync>>,

ยง

type Response = Response<Body>

Responses given by the service.
ยง

type Error = E

Errors produced by the service.
ยง

type Future = RouteFuture<E>

The future response value.
ยง

fn poll_ready( &mut self, _cx: &mut Context<'_>, ) -> Poll<Result<(), <MethodRouter<(), E> as Service<Request<B>>>::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
ยง

fn call( &mut self, req: Request<B>, ) -> <MethodRouter<(), E> as Service<Request<B>>>::Future

Process the request and return the response asynchronously. Read more
ยง

impl<B, E> Service<Request<B>> for Route<E>
where B: Body<Data = Bytes> + Send + 'static, <B as Body>::Error: Into<Box<dyn Error + Send + Sync>>,

ยง

type Response = Response<Body>

Responses given by the service.
ยง

type Error = E

Errors produced by the service.
ยง

type Future = RouteFuture<E>

The future response value.
ยง

fn poll_ready( &mut self, _cx: &mut Context<'_>, ) -> Poll<Result<(), <Route<E> as Service<Request<B>>>::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
ยง

fn call(&mut self, req: Request<B>) -> <Route<E> as Service<Request<B>>>::Future

Process the request and return the response asynchronously. Read more
ยง

impl<B> Service<Request<B>> for Router
where B: Body<Data = Bytes> + Send + 'static, <B as Body>::Error: Into<Box<dyn Error + Send + Sync>>,

ยง

type Response = Response<Body>

Responses given by the service.
ยง

type Error = Infallible

Errors produced by the service.
ยง

type Future = RouteFuture<Infallible>

The future response value.
ยง

fn poll_ready( &mut self, _: &mut Context<'_>, ) -> Poll<Result<(), <Router as Service<Request<B>>>::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
ยง

fn call(&mut self, req: Request<B>) -> <Router as Service<Request<B>>>::Future

Process the request and return the response asynchronously. Read more
ยง

impl<B> Service<Request<B>> for RouterAsService<'_, B>
where B: Body<Data = Bytes> + Send + 'static, <B as Body>::Error: Into<Box<dyn Error + Send + Sync>>,

ยง

type Response = Response<Body>

Responses given by the service.
ยง

type Error = Infallible

Errors produced by the service.
ยง

type Future = RouteFuture<Infallible>

The future response value.
ยง

fn poll_ready( &mut self, cx: &mut Context<'_>, ) -> Poll<Result<(), <RouterAsService<'_, B> as Service<Request<B>>>::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
ยง

fn call( &mut self, req: Request<B>, ) -> <RouterAsService<'_, B> as Service<Request<B>>>::Future

Process the request and return the response asynchronously. Read more
ยง

impl<B> Service<Request<B>> for RouterIntoService<B>
where B: Body<Data = Bytes> + Send + 'static, <B as Body>::Error: Into<Box<dyn Error + Send + Sync>>,

ยง

type Response = Response<Body>

Responses given by the service.
ยง

type Error = Infallible

Errors produced by the service.
ยง

type Future = RouteFuture<Infallible>

The future response value.
ยง

fn poll_ready( &mut self, cx: &mut Context<'_>, ) -> Poll<Result<(), <RouterIntoService<B> as Service<Request<B>>>::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
ยง

fn call( &mut self, req: Request<B>, ) -> <RouterIntoService<B> as Service<Request<B>>>::Future

Process the request and return the response asynchronously. Read more
ยง

impl Service<Request<Body>> for BoxedService<Request<Body>, Response<Body>>

ยง

type Response = Response<Body>

Responses given by the service.
ยง

type Error = ServerFnError

Errors produced by the service.
ยง

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>>

The future response value.
ยง

fn poll_ready( &mut self, _cx: &mut Context<'_>, ) -> Poll<Result<(), <BoxedService<Request<Body>, Response<Body>> as Service<Request<Body>>>::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
ยง

fn call( &mut self, req: Request<Body>, ) -> <BoxedService<Request<Body>, Response<Body>> as Service<Request<Body>>>::Future

Process the request and return the response asynchronously. Read more
ยง

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 Response = Response<Body>

Responses given by the service.
ยง

type Error = Infallible

Errors produced by the service.
ยง

type Future = ResponseFuture

The future response value.
ยง

fn poll_ready( &mut self, cx: &mut Context<'_>, ) -> Poll<Result<(), <FromFn<F, S, I, (T1,)> as Service<Request<Body>>>::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
ยง

fn call( &mut self, req: Request<Body>, ) -> <FromFn<F, S, I, (T1,)> as Service<Request<Body>>>::Future

Process the request and return the response asynchronously. Read more
ยง

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 Response = Response<Body>

Responses given by the service.
ยง

type Error = Infallible

Errors produced by the service.
ยง

type Future = ResponseFuture

The future response value.
ยง

fn poll_ready( &mut self, cx: &mut Context<'_>, ) -> Poll<Result<(), <FromFn<F, S, I, (T1, T2)> as Service<Request<Body>>>::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
ยง

fn call( &mut self, req: Request<Body>, ) -> <FromFn<F, S, I, (T1, T2)> as Service<Request<Body>>>::Future

Process the request and return the response asynchronously. Read more
ยง

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 Response = Response<Body>

Responses given by the service.
ยง

type Error = Infallible

Errors produced by the service.
ยง

type Future = ResponseFuture

The future response value.
ยง

fn poll_ready( &mut self, cx: &mut Context<'_>, ) -> Poll<Result<(), <FromFn<F, S, I, (T1, T2, T3)> as Service<Request<Body>>>::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
ยง

fn call( &mut self, req: Request<Body>, ) -> <FromFn<F, S, I, (T1, T2, T3)> as Service<Request<Body>>>::Future

Process the request and return the response asynchronously. Read more
ยง

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 Response = Response<Body>

Responses given by the service.
ยง

type Error = Infallible

Errors produced by the service.
ยง

type Future = ResponseFuture

The future response value.
ยง

fn poll_ready( &mut self, cx: &mut Context<'_>, ) -> Poll<Result<(), <FromFn<F, S, I, (T1, T2, T3, T4)> as Service<Request<Body>>>::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
ยง

fn call( &mut self, req: Request<Body>, ) -> <FromFn<F, S, I, (T1, T2, T3, T4)> as Service<Request<Body>>>::Future

Process the request and return the response asynchronously. Read more
ยง

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 Response = Response<Body>

Responses given by the service.
ยง

type Error = Infallible

Errors produced by the service.
ยง

type Future = ResponseFuture

The future response value.
ยง

fn poll_ready( &mut self, cx: &mut Context<'_>, ) -> Poll<Result<(), <FromFn<F, S, I, (T1, T2, T3, T4, T5)> as Service<Request<Body>>>::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
ยง

fn call( &mut self, req: Request<Body>, ) -> <FromFn<F, S, I, (T1, T2, T3, T4, T5)> as Service<Request<Body>>>::Future

Process the request and return the response asynchronously. Read more
ยง

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 Response = Response<Body>

Responses given by the service.
ยง

type Error = Infallible

Errors produced by the service.
ยง

type Future = ResponseFuture

The future response value.
ยง

fn poll_ready( &mut self, cx: &mut Context<'_>, ) -> Poll<Result<(), <FromFn<F, S, I, (T1, T2, T3, T4, T5, T6)> as Service<Request<Body>>>::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
ยง

fn call( &mut self, req: Request<Body>, ) -> <FromFn<F, S, I, (T1, T2, T3, T4, T5, T6)> as Service<Request<Body>>>::Future

Process the request and return the response asynchronously. Read more
ยง

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 Response = Response<Body>

Responses given by the service.
ยง

type Error = Infallible

Errors produced by the service.
ยง

type Future = ResponseFuture

The future response value.
ยง

fn poll_ready( &mut self, cx: &mut Context<'_>, ) -> Poll<Result<(), <FromFn<F, S, I, (T1, T2, T3, T4, T5, T6, T7)> as Service<Request<Body>>>::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
ยง

fn call( &mut self, req: Request<Body>, ) -> <FromFn<F, S, I, (T1, T2, T3, T4, T5, T6, T7)> as Service<Request<Body>>>::Future

Process the request and return the response asynchronously. Read more
ยง

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 Response = Response<Body>

Responses given by the service.
ยง

type Error = Infallible

Errors produced by the service.
ยง

type Future = ResponseFuture

The future response value.
ยง

fn poll_ready( &mut self, cx: &mut Context<'_>, ) -> Poll<Result<(), <FromFn<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8)> as Service<Request<Body>>>::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
ยง

fn call( &mut self, req: Request<Body>, ) -> <FromFn<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8)> as Service<Request<Body>>>::Future

Process the request and return the response asynchronously. Read more
ยง

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 Response = Response<Body>

Responses given by the service.
ยง

type Error = Infallible

Errors produced by the service.
ยง

type Future = ResponseFuture

The future response value.
ยง

fn poll_ready( &mut self, cx: &mut Context<'_>, ) -> Poll<Result<(), <FromFn<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9)> as Service<Request<Body>>>::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
ยง

fn call( &mut self, req: Request<Body>, ) -> <FromFn<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9)> as Service<Request<Body>>>::Future

Process the request and return the response asynchronously. Read more
ยง

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 Response = Response<Body>

Responses given by the service.
ยง

type Error = Infallible

Errors produced by the service.
ยง

type Future = ResponseFuture

The future response value.
ยง

fn poll_ready( &mut self, cx: &mut Context<'_>, ) -> Poll<Result<(), <FromFn<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)> as Service<Request<Body>>>::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
ยง

fn call( &mut self, req: Request<Body>, ) -> <FromFn<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)> as Service<Request<Body>>>::Future

Process the request and return the response asynchronously. Read more
ยง

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 Response = Response<Body>

Responses given by the service.
ยง

type Error = Infallible

Errors produced by the service.
ยง

type Future = ResponseFuture

The future response value.
ยง

fn poll_ready( &mut self, cx: &mut Context<'_>, ) -> Poll<Result<(), <FromFn<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)> as Service<Request<Body>>>::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
ยง

fn call( &mut self, req: Request<Body>, ) -> <FromFn<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)> as Service<Request<Body>>>::Future

Process the request and return the response asynchronously. Read more
ยง

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 Response = Response<Body>

Responses given by the service.
ยง

type Error = Infallible

Errors produced by the service.
ยง

type Future = ResponseFuture

The future response value.
ยง

fn poll_ready( &mut self, cx: &mut Context<'_>, ) -> Poll<Result<(), <FromFn<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)> as Service<Request<Body>>>::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
ยง

fn call( &mut self, req: Request<Body>, ) -> <FromFn<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)> as Service<Request<Body>>>::Future

Process the request and return the response asynchronously. Read more
ยง

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 Response = Response<Body>

Responses given by the service.
ยง

type Error = Infallible

Errors produced by the service.
ยง

type Future = ResponseFuture

The future response value.
ยง

fn poll_ready( &mut self, cx: &mut Context<'_>, ) -> Poll<Result<(), <FromFn<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13)> as Service<Request<Body>>>::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
ยง

fn call( &mut self, req: Request<Body>, ) -> <FromFn<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13)> as Service<Request<Body>>>::Future

Process the request and return the response asynchronously. Read more
ยง

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 Response = Response<Body>

Responses given by the service.
ยง

type Error = Infallible

Errors produced by the service.
ยง

type Future = ResponseFuture

The future response value.
ยง

fn poll_ready( &mut self, cx: &mut Context<'_>, ) -> Poll<Result<(), <FromFn<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14)> as Service<Request<Body>>>::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
ยง

fn call( &mut self, req: Request<Body>, ) -> <FromFn<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14)> as Service<Request<Body>>>::Future

Process the request and return the response asynchronously. Read more
ยง

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 Response = Response<Body>

Responses given by the service.
ยง

type Error = Infallible

Errors produced by the service.
ยง

type Future = ResponseFuture

The future response value.
ยง

fn poll_ready( &mut self, cx: &mut Context<'_>, ) -> Poll<Result<(), <FromFn<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15)> as Service<Request<Body>>>::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
ยง

fn call( &mut self, req: Request<Body>, ) -> <FromFn<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15)> as Service<Request<Body>>>::Future

Process the request and return the response asynchronously. Read more
ยง

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 Response = Response<Body>

Responses given by the service.
ยง

type Error = Infallible

Errors produced by the service.
ยง

type Future = ResponseFuture

The future response value.
ยง

fn poll_ready( &mut self, cx: &mut Context<'_>, ) -> Poll<Result<(), <FromFn<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16)> as Service<Request<Body>>>::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
ยง

fn call( &mut self, req: Request<Body>, ) -> <FromFn<F, S, I, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16)> as Service<Request<Body>>>::Future

Process the request and return the response asynchronously. Read more
ยง

impl Service<Request<Body>> for Next

ยง

type Response = Response<Body>

Responses given by the service.
ยง

type Error = Infallible

Errors produced by the service.
ยง

type Future = Pin<Box<dyn Future<Output = Result<<Next as Service<Request<Body>>>::Response, <Next as Service<Request<Body>>>::Error>> + Send>>

The future response value.
ยง

fn poll_ready( &mut self, cx: &mut Context<'_>, ) -> Poll<Result<(), <Next as Service<Request<Body>>>::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
ยง

fn call( &mut self, req: Request<Body>, ) -> <Next as Service<Request<Body>>>::Future

Process the request and return the response asynchronously. Read more
ยง

impl<ResBody, S, T> Service<Request<ResBody>> for AddExtension<S, T>
where S: Service<Request<ResBody>>, T: Clone + Send + Sync + 'static,

ยง

type Response = <S as Service<Request<ResBody>>>::Response

Responses given by the service.
ยง

type Error = <S as Service<Request<ResBody>>>::Error

Errors produced by the service.
ยง

type Future = <S as Service<Request<ResBody>>>::Future

The future response value.
ยง

fn poll_ready( &mut self, cx: &mut Context<'_>, ) -> Poll<Result<(), <AddExtension<S, T> as Service<Request<ResBody>>>::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
ยง

fn call( &mut self, req: Request<ResBody>, ) -> <AddExtension<S, T> as Service<Request<ResBody>>>::Future

Process the request and return the response asynchronously. Read more
ยง

impl<T> TryFrom<Request<T>> for Request
where T: Into<Body>,

ยง

type Error = Error

The type returned in the event of a conversion error.
ยง

fn try_from(req: Request<T>) -> Result<Request, Error>

Performs the conversion.
ยง

impl<T> TryFrom<Request<T>> for Request
where T: Into<Body>,

ยง

type Error = Error

The type returned in the event of a conversion error.
ยง

fn try_from(req: Request<T>) -> Result<Request, Error>

Performs the conversion.
ยง

impl TryFrom<Request> for Request<Body>

ยง

type Error = Error

The type returned in the event of a conversion error.
ยง

fn try_from(req: Request) -> Result<Request<Body>, Error>

Performs the conversion.
ยง

impl TryParse for Request<()>

ยง

fn try_parse(buf: &[u8]) -> Result<Option<(usize, Request<()>)>, Error>

Return Ok(None) if incomplete, Err on syntax error.

Auto 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 S
where 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) -> D
where M: TransformMatrix<T>,

Convert the source color to the destination color using the specified method.
Sourceยง

fn adapt_into(self) -> D

Convert the source color to the destination color using the bradford method by default.
Sourceยง

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

Sourceยง

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
ยง

impl<T> ArchivePointee for T

ยง

type ArchivedMetadata = ()

The archived version of the pointer metadata for this type.
ยง

fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata

Converts some archived metadata to the pointer metadata for itself.
Sourceยง

impl<T, C> ArraysFrom<C> for T
where C: IntoArrays<T>,

Sourceยง

fn arrays_from(colors: C) -> T

Cast a collection of colors into a collection of arrays.
Sourceยง

impl<T, C> ArraysInto<C> for T
where C: FromArrays<T>,

Sourceยง

fn arrays_into(self) -> C

Cast this collection of arrays into a collection of colors.
ยง

impl<T> BodyExt for T
where T: Body + ?Sized,

ยง

fn frame(&mut self) -> Frame<'_, Self> โ“˜
where Self: Unpin,

Returns a future that resolves to the next Frame, if any.
ยง

fn map_frame<F, B>(self, f: F) -> MapFrame<Self, F>
where Self: Sized, F: FnMut(Frame<Self::Data>) -> Frame<B>, B: Buf,

Maps this bodyโ€™s frame to a different kind.
ยง

fn map_err<F, E>(self, f: F) -> MapErr<Self, F>
where Self: Sized, F: FnMut(Self::Error) -> E,

Maps this bodyโ€™s error value to a different value.
ยง

fn boxed(self) -> BoxBody<Self::Data, Self::Error>
where Self: Sized + Send + Sync + 'static,

Turn this body into a boxed trait object.
ยง

fn boxed_unsync(self) -> UnsyncBoxBody<Self::Data, Self::Error>
where Self: Sized + Send + 'static,

Turn this body into a boxed trait object that is !Sync.
ยง

fn collect(self) -> Collect<Self> โ“˜
where Self: Sized,

Turn this body into [Collected] body which will collect all the DATA frames and trailers.
ยง

fn with_trailers<F>(self, trailers: F) -> WithTrailers<Self, F>
where Self: Sized, F: Future<Output = Option<Result<HeaderMap, Self::Error>>>,

Add trailers to the body. Read more
ยง

fn into_data_stream(self) -> BodyDataStream<Self>
where Self: Sized,

Turn this body into [BodyDataStream].
Sourceยง

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

Sourceยง

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Sourceยง

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

Sourceยง

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

Mutably borrows from an owned value. Read more
Sourceยง

impl<WpParam, T, U> Cam16IntoUnclamped<WpParam, T> for U
where T: FromCam16Unclamped<WpParam, U>,

Sourceยง

type Scalar = <T as FromCam16Unclamped<WpParam, U>>::Scalar

The number type thatโ€™s used in parameters when converting.
Sourceยง

fn cam16_into_unclamped( self, parameters: BakedParameters<WpParam, <U as Cam16IntoUnclamped<WpParam, T>>::Scalar>, ) -> T

Converts self into C, using the provided parameters.
Sourceยง

impl<T> CloneToUninit for T
where T: Clone,

Sourceยง

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

๐Ÿ”ฌThis is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Sourceยง

impl<T, C> ComponentsFrom<C> for T
where C: IntoComponents<T>,

Sourceยง

fn components_from(colors: C) -> T

Cast a collection of colors into a collection of color components.
ยง

impl<F, W, T, D> Deserialize<With<T, W>, D> for F
where W: DeserializeWith<F, T, D>, D: Fallible + ?Sized, F: ?Sized,

ยง

fn deserialize( &self, deserializer: &mut D, ) -> Result<With<T, W>, <D as Fallible>::Error>

Deserializes using the given deserializer
ยง

impl<T> Downcast for T
where T: Any,

ยง

fn into_any(self: Box<T>) -> Box<dyn Any>

Converts Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.
ยง

fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>

Converts Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait.
ยง

fn as_any(&self) -> &(dyn Any + 'static)

Converts &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Anyโ€™s vtable from &Traitโ€™s.
ยง

fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)

Converts &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Anyโ€™s vtable from &mut Traitโ€™s.
ยง

impl<T> DowncastSend for T
where T: Any + Send,

ยง

fn into_any_send(self: Box<T>) -> Box<dyn Any + Send>

Converts Box<Trait> (where Trait: DowncastSend) to Box<dyn Any + Send>, which can then be downcast into Box<ConcreteType> where ConcreteType implements Trait.
ยง

impl<T> DowncastSync for T
where T: Any + Send + Sync,

ยง

fn into_any_sync(self: Box<T>) -> Box<dyn Any + Send + Sync>

Converts Box<Trait> (where Trait: DowncastSync) to Box<dyn Any + Send + Sync>, which can then be downcast into Box<ConcreteType> where ConcreteType implements Trait.
ยง

fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Send + Sync>

Converts Arc<Trait> (where Trait: DowncastSync) to Arc<Any>, which can then be downcast into Arc<ConcreteType> where ConcreteType implements Trait.
Sourceยง

impl<T> From<T> for T

Sourceยง

fn from(t: T) -> T

Returns the argument unchanged.

Sourceยง

impl<T> FromAngle<T> for T

Sourceยง

fn from_angle(angle: T) -> T

Performs a conversion from angle.
ยง

impl<T> FromRef<T> for T
where T: Clone,

ยง

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
ยง

impl<E, T, Request, Encoding> FromReq<Patch<Encoding>, Request, E> for T
where Request: Req<E> + Send + 'static, Encoding: Decodes<T>, E: FromServerFnError,

ยง

async fn from_req(req: Request) -> Result<T, E>

Attempts to deserialize the arguments from a request.
ยง

impl<E, T, Request, Encoding> FromReq<Post<Encoding>, Request, E> for T
where Request: Req<E> + Send + 'static, Encoding: Decodes<T>, E: FromServerFnError,

ยง

async fn from_req(req: Request) -> Result<T, E>

Attempts to deserialize the arguments from a request.
ยง

impl<E, T, Request, Encoding> FromReq<Put<Encoding>, Request, E> for T
where Request: Req<E> + Send + 'static, Encoding: Decodes<T>, E: FromServerFnError,

ยง

async fn from_req(req: Request) -> Result<T, E>

Attempts to deserialize the arguments from a request.
ยง

impl<E, Encoding, Response, T> FromRes<Patch<Encoding>, Response, E> for T
where Response: ClientRes<E> + Send, Encoding: Decodes<T>, E: FromServerFnError,

ยง

async fn from_res(res: Response) -> Result<T, E>

Attempts to deserialize the outputs from a response.
ยง

impl<E, Encoding, Response, T> FromRes<Post<Encoding>, Response, E> for T
where Response: ClientRes<E> + Send, Encoding: Decodes<T>, E: FromServerFnError,

ยง

async fn from_res(res: Response) -> Result<T, E>

Attempts to deserialize the outputs from a response.
ยง

impl<E, Encoding, Response, T> FromRes<Put<Encoding>, Response, E> for T
where Response: ClientRes<E> + Send, Encoding: Decodes<T>, E: FromServerFnError,

ยง

async fn from_res(res: Response) -> Result<T, E>

Attempts to deserialize the outputs from a response.
Sourceยง

impl<T, U> FromStimulus<U> for T
where U: IntoStimulus<T>,

Sourceยง

fn from_stimulus(other: U) -> T

Converts other into Self, while performing the appropriate scaling, rounding and clamping.
ยง

impl<T> Instrument for T

ยง

fn instrument(self, span: Span) -> Instrumented<Self> โ“˜

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
ยง

fn in_current_span(self) -> Instrumented<Self> โ“˜

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Sourceยง

impl<T, U> Into<U> for T
where U: From<T>,

Sourceยง

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Sourceยง

impl<T, U> IntoAngle<U> for T
where U: FromAngle<T>,

Sourceยง

fn into_angle(self) -> U

Performs a conversion into T.
Sourceยง

impl<WpParam, T, U> IntoCam16Unclamped<WpParam, T> for U
where T: Cam16FromUnclamped<WpParam, U>,

Sourceยง

type Scalar = <T as Cam16FromUnclamped<WpParam, U>>::Scalar

The number type thatโ€™s used in parameters when converting.
Sourceยง

fn into_cam16_unclamped( self, parameters: BakedParameters<WpParam, <U as IntoCam16Unclamped<WpParam, T>>::Scalar>, ) -> T

Converts self into C, using the provided parameters.
Sourceยง

impl<T, U> IntoColor<U> for T
where U: FromColor<T>,

Sourceยง

fn into_color(self) -> U

Convert into T with values clamped to the color defined bounds Read more
Sourceยง

impl<T, U> IntoColorUnclamped<U> for T
where U: FromColorUnclamped<T>,

Sourceยง

fn into_color_unclamped(self) -> U

Convert into T. The resulting color might be invalid in its color space Read more
Sourceยง

impl<T> IntoEither for T

Sourceยง

fn into_either(self, into_left: bool) -> Either<Self, Self> โ“˜

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Sourceยง

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> โ“˜
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
ยง

impl<E, T, Encoding, Request> IntoReq<Patch<Encoding>, Request, E> for T
where Request: ClientReq<E>, Encoding: Encodes<T>, E: FromServerFnError,

ยง

fn into_req(self, path: &str, accepts: &str) -> Result<Request, E>

Attempts to serialize the arguments into an HTTP request.
ยง

impl<E, T, Encoding, Request> IntoReq<Post<Encoding>, Request, E> for T
where Request: ClientReq<E>, Encoding: Encodes<T>, E: FromServerFnError,

ยง

fn into_req(self, path: &str, accepts: &str) -> Result<Request, E>

Attempts to serialize the arguments into an HTTP request.
ยง

impl<E, T, Encoding, Request> IntoReq<Put<Encoding>, Request, E> for T
where Request: ClientReq<E>, Encoding: Encodes<T>, E: FromServerFnError,

ยง

fn into_req(self, path: &str, accepts: &str) -> Result<Request, E>

Attempts to serialize the arguments into an HTTP request.
ยง

impl<E, Response, Encoding, T> IntoRes<Patch<Encoding>, Response, E> for T
where Response: TryRes<E>, Encoding: Encodes<T>, E: FromServerFnError + Send, T: Send,

ยง

async fn into_res(self) -> Result<Response, E>

Attempts to serialize the output into an HTTP response.
ยง

impl<E, Response, Encoding, T> IntoRes<Post<Encoding>, Response, E> for T
where Response: TryRes<E>, Encoding: Encodes<T>, E: FromServerFnError + Send, T: Send,

ยง

async fn into_res(self) -> Result<Response, E>

Attempts to serialize the output into an HTTP response.
ยง

impl<E, Response, Encoding, T> IntoRes<Put<Encoding>, Response, E> for T
where Response: TryRes<E>, Encoding: Encodes<T>, E: FromServerFnError + Send, T: Send,

ยง

async fn into_res(self) -> Result<Response, E>

Attempts to serialize the output into an HTTP response.
Sourceยง

impl<T> IntoStimulus<T> for T

Sourceยง

fn into_stimulus(self) -> T

Converts self into T, while performing the appropriate scaling, rounding and clamping.
ยง

impl<L> Layer<Request<Body>, Response<Body>> for L
where L: Layer<BoxedService<Request<Body>, Response<Body>>> + Sync + Send + 'static, <L as Layer<BoxedService<Request<Body>, Response<Body>>>>::Service: Service<Request<Body>, Response<Body>> + Send + 'static,

ยง

fn layer( &self, inner: BoxedService<Request<Body>, Response<Body>>, ) -> BoxedService<Request<Body>, Response<Body>>

Adds this layer to the inner service.
ยง

impl<T> Pointable for T

ยง

const ALIGN: usize

The alignment of pointer.
ยง

type Init = T

The type for initializers.
ยง

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
ยง

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
ยง

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
ยง

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
ยง

impl<T> Pointee for T

ยง

type Metadata = ()

The type for metadata in pointers and references to Self.
ยง

impl<T> PolicyExt for T
where T: ?Sized,

ยง

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] only if self and other return Action::Follow. Read more
ยง

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] if either self or other returns Action::Follow. Read more
Sourceยง

impl<T> Same for T

Sourceยง

type Output = T

Should always be Self
ยง

impl<T> SerializableKey for T

ยง

fn ser_key(&self) -> String

Serializes the key to a unique string. Read more
ยง

impl<S> Service<Request<Body>, Response<Body>> for S
where S: Service<Request<Body>, Response = Response<Body>>, <S as Service<Request<Body>>>::Future: Send + 'static, <S as Service<Request<Body>>>::Error: Display + Send + 'static,

ยง

fn run( &mut self, req: Request<Body>, ser: fn(ServerFnErrorErr) -> Bytes, ) -> Pin<Box<dyn Future<Output = Response<Body>> + Send>>

Converts a request into a response.
ยง

impl<T> StorageAccess<T> for T

ยง

fn as_borrowed(&self) -> &T

Borrows the value.
ยง

fn into_taken(self) -> T

Takes the value.
Sourceยง

impl<T> ToOwned for T
where T: Clone,

Sourceยง

type Owned = T

The resulting type after obtaining ownership.
Sourceยง

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Sourceยง

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Sourceยง

impl<T, C> TryComponentsInto<C> for T
where C: TryFromComponents<T>,

Sourceยง

type Error = <C as TryFromComponents<T>>::Error

The error for when try_into_colors fails to cast.
Sourceยง

fn try_components_into(self) -> Result<C, <T as TryComponentsInto<C>>::Error>

Try to cast this collection of color components into a collection of colors. Read more
Sourceยง

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Sourceยง

type Error = Infallible

The type returned in the event of a conversion error.
Sourceยง

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

Performs the conversion.
Sourceยง

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

Sourceยง

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Sourceยง

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

Performs the conversion.
Sourceยง

impl<T, U> TryIntoColor<U> for T
where U: TryFromColor<T>,

Sourceยง

fn try_into_color(self) -> Result<U, OutOfBounds<U>>

Convert into T, returning ok if the color is inside of its defined range, otherwise an OutOfBounds error is returned which contains the unclamped color. Read more
Sourceยง

impl<C, U> UintsFrom<C> for U
where C: IntoUints<U>,

Sourceยง

fn uints_from(colors: C) -> U

Cast a collection of colors into a collection of unsigned integers.
Sourceยง

impl<C, U> UintsInto<C> for U
where C: FromUints<U>,

Sourceยง

fn uints_into(self) -> C

Cast this collection of unsigned integers into a collection of colors.
ยง

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

ยง

fn vzip(self) -> V

ยง

impl<T> WithSubscriber for T

ยง

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> โ“˜
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
ยง

fn with_current_subscriber(self) -> WithDispatch<Self> โ“˜

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
ยง

impl<T> ErasedDestructor for T
where T: 'static,

ยง

impl<T> Fruit for T
where T: Send + Downcast,