pub struct Request<T> { /* private fields */ }
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))
}
Implementations§
§impl Request<()>
impl Request<()>
pub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture a Request
This method returns an instance of Builder
which can be used to
create a Request
.
§Examples
let request = Request::builder()
.method("GET")
.uri("https://www.rust-lang.org/")
.header("X-Custom-Foo", "Bar")
.body(())
.unwrap();
pub fn get<T>(uri: T) -> Builder
pub fn get<T>(uri: T) -> Builder
Creates a new Builder
initialized with a GET method and the given URI.
This method returns an instance of Builder
which can be used to
create a Request
.
§Example
let request = Request::get("https://www.rust-lang.org/")
.body(())
.unwrap();
pub fn put<T>(uri: T) -> Builder
pub fn put<T>(uri: T) -> Builder
Creates a new Builder
initialized with a PUT method and the given URI.
This method returns an instance of Builder
which can be used to
create a Request
.
§Example
let request = Request::put("https://www.rust-lang.org/")
.body(())
.unwrap();
pub fn post<T>(uri: T) -> Builder
pub fn post<T>(uri: T) -> Builder
Creates a new Builder
initialized with a POST method and the given URI.
This method returns an instance of Builder
which can be used to
create a Request
.
§Example
let request = Request::post("https://www.rust-lang.org/")
.body(())
.unwrap();
pub fn delete<T>(uri: T) -> Builder
pub fn delete<T>(uri: T) -> Builder
Creates a new Builder
initialized with a DELETE method and the given URI.
This method returns an instance of Builder
which can be used to
create a Request
.
§Example
let request = Request::delete("https://www.rust-lang.org/")
.body(())
.unwrap();
pub fn options<T>(uri: T) -> Builder
pub fn options<T>(uri: T) -> Builder
Creates a new Builder
initialized with an OPTIONS method and the given URI.
This method returns an instance of Builder
which can be used to
create a Request
.
§Example
let request = Request::options("https://www.rust-lang.org/")
.body(())
.unwrap();
pub fn head<T>(uri: T) -> Builder
pub fn head<T>(uri: T) -> Builder
Creates a new Builder
initialized with a HEAD method and the given URI.
This method returns an instance of Builder
which can be used to
create a Request
.
§Example
let request = Request::head("https://www.rust-lang.org/")
.body(())
.unwrap();
pub fn connect<T>(uri: T) -> Builder
pub fn connect<T>(uri: T) -> Builder
Creates a new Builder
initialized with a CONNECT method and the given URI.
This method returns an instance of Builder
which can be used to
create a Request
.
§Example
let request = Request::connect("https://www.rust-lang.org/")
.body(())
.unwrap();
pub fn patch<T>(uri: T) -> Builder
pub fn patch<T>(uri: T) -> Builder
Creates a new Builder
initialized with a PATCH method and the given URI.
This method returns an instance of Builder
which can be used to
create a Request
.
§Example
let request = Request::patch("https://www.rust-lang.org/")
.body(())
.unwrap();
§impl<T> Request<T>
impl<T> Request<T>
pub fn new(body: T) -> Request<T>
pub fn new(body: T) -> Request<T>
Creates a new blank Request
with the body
The component parts of this request will be set to their default, e.g. the GET method, no headers, etc.
§Examples
let request = Request::new("hello world");
assert_eq!(*request.method(), Method::GET);
assert_eq!(*request.body(), "hello world");
pub fn from_parts(parts: Parts, body: T) -> Request<T>
pub fn from_parts(parts: Parts, body: T) -> Request<T>
Creates a new Request
with the given components parts and body.
§Examples
let request = Request::new("hello world");
let (mut parts, body) = request.into_parts();
parts.method = Method::POST;
let request = Request::from_parts(parts, body);
pub fn method(&self) -> &Method
pub fn method(&self) -> &Method
Returns a reference to the associated HTTP method.
§Examples
let request: Request<()> = Request::default();
assert_eq!(*request.method(), Method::GET);
pub fn method_mut(&mut self) -> &mut Method
pub fn method_mut(&mut self) -> &mut Method
Returns a mutable reference to the associated HTTP method.
§Examples
let mut request: Request<()> = Request::default();
*request.method_mut() = Method::PUT;
assert_eq!(*request.method(), Method::PUT);
pub fn uri(&self) -> &Uri
pub fn uri(&self) -> &Uri
Returns a reference to the associated URI.
§Examples
let request: Request<()> = Request::default();
assert_eq!(*request.uri(), *"/");
pub fn uri_mut(&mut self) -> &mut Uri
pub fn uri_mut(&mut self) -> &mut Uri
Returns a mutable reference to the associated URI.
§Examples
let mut request: Request<()> = Request::default();
*request.uri_mut() = "/hello".parse().unwrap();
assert_eq!(*request.uri(), *"/hello");
pub fn version(&self) -> Version
pub fn version(&self) -> Version
Returns the associated version.
§Examples
let request: Request<()> = Request::default();
assert_eq!(request.version(), Version::HTTP_11);
pub fn version_mut(&mut self) -> &mut Version
pub fn version_mut(&mut self) -> &mut Version
Returns a mutable reference to the associated version.
§Examples
let mut request: Request<()> = Request::default();
*request.version_mut() = Version::HTTP_2;
assert_eq!(request.version(), Version::HTTP_2);
pub fn headers(&self) -> &HeaderMap
pub fn headers(&self) -> &HeaderMap
Returns a reference to the associated header field map.
§Examples
let request: Request<()> = Request::default();
assert!(request.headers().is_empty());
pub fn headers_mut(&mut self) -> &mut HeaderMap
pub fn headers_mut(&mut self) -> &mut HeaderMap
Returns a mutable reference to the associated header field map.
§Examples
let mut request: Request<()> = Request::default();
request.headers_mut().insert(HOST, HeaderValue::from_static("world"));
assert!(!request.headers().is_empty());
pub fn extensions(&self) -> &Extensions
pub fn extensions(&self) -> &Extensions
Returns a reference to the associated extensions.
§Examples
let request: Request<()> = Request::default();
assert!(request.extensions().get::<i32>().is_none());
pub fn extensions_mut(&mut self) -> &mut Extensions
pub fn extensions_mut(&mut self) -> &mut Extensions
Returns a mutable reference to the associated extensions.
§Examples
let mut request: Request<()> = Request::default();
request.extensions_mut().insert("hello");
assert_eq!(request.extensions().get(), Some(&"hello"));
pub fn body(&self) -> &T
pub fn body(&self) -> &T
Returns a reference to the associated HTTP body.
§Examples
let request: Request<String> = Request::default();
assert!(request.body().is_empty());
pub fn body_mut(&mut self) -> &mut T
pub fn body_mut(&mut self) -> &mut T
Returns a mutable reference to the associated HTTP body.
§Examples
let mut request: Request<String> = Request::default();
request.body_mut().push_str("hello world");
assert!(!request.body().is_empty());
pub fn into_body(self) -> T
pub fn into_body(self) -> T
Consumes the request, returning just the body.
§Examples
let request = Request::new(10);
let body = request.into_body();
assert_eq!(body, 10);
pub fn into_parts(self) -> (Parts, T)
pub fn into_parts(self) -> (Parts, T)
Consumes the request returning the head and body parts.
§Examples
let request = Request::new(());
let (parts, body) = request.into_parts();
assert_eq!(parts.method, Method::GET);
pub fn map<F, U>(self, f: F) -> Request<U>where
F: FnOnce(T) -> U,
pub fn map<F, U>(self, f: F) -> Request<U>where
F: FnOnce(T) -> U,
Consumes the request returning a new request with body mapped to the return type of the passed in function.
§Examples
let request = Request::builder().body("some string").unwrap();
let mapped_request: Request<&[u8]> = request.map(|b| {
assert_eq!(b, "some string");
b.as_bytes()
});
assert_eq!(mapped_request.body(), &"some string".as_bytes());
Trait Implementations§
§impl<B> Body for Request<B>where
B: Body,
impl<B> Body for Request<B>where
B: Body,
§fn poll_frame(
self: Pin<&mut Request<B>>,
cx: &mut Context<'_>,
) -> Poll<Option<Result<Frame<<Request<B> as Body>::Data>, <Request<B> as Body>::Error>>>
fn poll_frame( self: Pin<&mut Request<B>>, cx: &mut Context<'_>, ) -> Poll<Option<Result<Frame<<Request<B> as Body>::Data>, <Request<B> as Body>::Error>>>
§fn is_end_stream(&self) -> bool
fn is_end_stream(&self) -> bool
true
when the end of stream has been reached. Read more§impl<Body> BodyExtractExt for Request<Body>
impl<Body> BodyExtractExt for Request<Body>
§async fn try_into_json<T>(self) -> Result<T, OpaqueError>where
T: DeserializeOwned + Send + 'static,
async fn try_into_json<T>(self) -> Result<T, OpaqueError>where
T: DeserializeOwned + Send + 'static,
§async fn try_into_string(self) -> Result<String, OpaqueError>
async fn try_into_string(self) -> Result<String, OpaqueError>
§impl FromRequest for Request<Body>
impl FromRequest for Request<Body>
§type Rejection = Infallible
type Rejection = Infallible
§impl<Body> HeaderValueGetter for Request<Body>
impl<Body> HeaderValueGetter for Request<Body>
§fn header_str<K>(&self, key: K) -> Result<&str, HeaderValueErr>where
K: AsHeaderName + Copy,
fn header_str<K>(&self, key: K) -> Result<&str, HeaderValueErr>where
K: AsHeaderName + Copy,
§fn header_bytes<K>(&self, key: K) -> Result<&[u8], HeaderValueErr>where
K: AsHeaderName + Copy,
fn header_bytes<K>(&self, key: K) -> Result<&[u8], HeaderValueErr>where
K: AsHeaderName + Copy,
§impl<State, Body> Matcher<State, Request<Body>> for DomainMatcher
impl<State, Body> Matcher<State, Request<Body>> for DomainMatcher
§fn matches(
&self,
ext: Option<&mut Extensions>,
ctx: &Context<State>,
req: &Request<Body>,
) -> bool
fn matches( &self, ext: Option<&mut Extensions>, ctx: &Context<State>, req: &Request<Body>, ) -> bool
§fn or<M>(self, other: M) -> impl Matcher<State, Request>
fn or<M>(self, other: M) -> impl Matcher<State, Request>
§impl<State, Body> Matcher<State, Request<Body>> for HeaderMatcher
impl<State, Body> Matcher<State, Request<Body>> for HeaderMatcher
§fn matches(
&self,
_ext: Option<&mut Extensions>,
_ctx: &Context<State>,
req: &Request<Body>,
) -> bool
fn matches( &self, _ext: Option<&mut Extensions>, _ctx: &Context<State>, req: &Request<Body>, ) -> bool
§fn or<M>(self, other: M) -> impl Matcher<State, Request>
fn or<M>(self, other: M) -> impl Matcher<State, Request>
§impl<State, Body> Matcher<State, Request<Body>> for HttpMatcher<State, Body>
impl<State, Body> Matcher<State, Request<Body>> for HttpMatcher<State, Body>
§fn matches(
&self,
ext: Option<&mut Extensions>,
ctx: &Context<State>,
req: &Request<Body>,
) -> bool
fn matches( &self, ext: Option<&mut Extensions>, ctx: &Context<State>, req: &Request<Body>, ) -> bool
§fn or<M>(self, other: M) -> impl Matcher<State, Request>
fn or<M>(self, other: M) -> impl Matcher<State, Request>
§impl<State, Body> Matcher<State, Request<Body>> for HttpMatcherKind<State, Body>
impl<State, Body> Matcher<State, Request<Body>> for HttpMatcherKind<State, Body>
§fn matches(
&self,
ext: Option<&mut Extensions>,
ctx: &Context<State>,
req: &Request<Body>,
) -> bool
fn matches( &self, ext: Option<&mut Extensions>, ctx: &Context<State>, req: &Request<Body>, ) -> bool
§fn or<M>(self, other: M) -> impl Matcher<State, Request>
fn or<M>(self, other: M) -> impl Matcher<State, Request>
§impl<State, Body> Matcher<State, Request<Body>> for IpNetMatcher
impl<State, Body> Matcher<State, Request<Body>> for IpNetMatcher
§fn matches(
&self,
_ext: Option<&mut Extensions>,
ctx: &Context<State>,
_req: &Request<Body>,
) -> bool
fn matches( &self, _ext: Option<&mut Extensions>, ctx: &Context<State>, _req: &Request<Body>, ) -> bool
§fn or<M>(self, other: M) -> impl Matcher<State, Request>
fn or<M>(self, other: M) -> impl Matcher<State, Request>
§impl<State, Body> Matcher<State, Request<Body>> for LoopbackMatcher
impl<State, Body> Matcher<State, Request<Body>> for LoopbackMatcher
§fn matches(
&self,
_ext: Option<&mut Extensions>,
ctx: &Context<State>,
_req: &Request<Body>,
) -> bool
fn matches( &self, _ext: Option<&mut Extensions>, ctx: &Context<State>, _req: &Request<Body>, ) -> bool
§fn or<M>(self, other: M) -> impl Matcher<State, Request>
fn or<M>(self, other: M) -> impl Matcher<State, Request>
§impl<State, Body> Matcher<State, Request<Body>> for MethodMatcher
impl<State, Body> Matcher<State, Request<Body>> for MethodMatcher
§fn matches(
&self,
_ext: Option<&mut Extensions>,
_ctx: &Context<State>,
req: &Request<Body>,
) -> bool
fn matches( &self, _ext: Option<&mut Extensions>, _ctx: &Context<State>, req: &Request<Body>, ) -> bool
returns true on a match, false otherwise
§fn or<M>(self, other: M) -> impl Matcher<State, Request>
fn or<M>(self, other: M) -> impl Matcher<State, Request>
§impl<State, Body> Matcher<State, Request<Body>> for PathMatcher
impl<State, Body> Matcher<State, Request<Body>> for PathMatcher
§fn matches(
&self,
ext: Option<&mut Extensions>,
_ctx: &Context<State>,
req: &Request<Body>,
) -> bool
fn matches( &self, ext: Option<&mut Extensions>, _ctx: &Context<State>, req: &Request<Body>, ) -> bool
§fn or<M>(self, other: M) -> impl Matcher<State, Request>
fn or<M>(self, other: M) -> impl Matcher<State, Request>
§impl<State, Body> Matcher<State, Request<Body>> for PortMatcher
impl<State, Body> Matcher<State, Request<Body>> for PortMatcher
§fn matches(
&self,
_ext: Option<&mut Extensions>,
ctx: &Context<State>,
_req: &Request<Body>,
) -> bool
fn matches( &self, _ext: Option<&mut Extensions>, ctx: &Context<State>, _req: &Request<Body>, ) -> bool
§fn or<M>(self, other: M) -> impl Matcher<State, Request>
fn or<M>(self, other: M) -> impl Matcher<State, Request>
§impl<State, Body> Matcher<State, Request<Body>> for PrivateIpNetMatcher
impl<State, Body> Matcher<State, Request<Body>> for PrivateIpNetMatcher
§fn matches(
&self,
_ext: Option<&mut Extensions>,
ctx: &Context<State>,
_req: &Request<Body>,
) -> bool
fn matches( &self, _ext: Option<&mut Extensions>, ctx: &Context<State>, _req: &Request<Body>, ) -> bool
§fn or<M>(self, other: M) -> impl Matcher<State, Request>
fn or<M>(self, other: M) -> impl Matcher<State, Request>
§impl<State, Body> Matcher<State, Request<Body>> for SocketAddressMatcher
impl<State, Body> Matcher<State, Request<Body>> for SocketAddressMatcher
§fn matches(
&self,
_ext: Option<&mut Extensions>,
ctx: &Context<State>,
_req: &Request<Body>,
) -> bool
fn matches( &self, _ext: Option<&mut Extensions>, ctx: &Context<State>, _req: &Request<Body>, ) -> bool
§fn or<M>(self, other: M) -> impl Matcher<State, Request>
fn or<M>(self, other: M) -> impl Matcher<State, Request>
§impl<State, Body> Matcher<State, Request<Body>> for SocketMatcher<State, Request<Body>>where
State: 'static,
Body: 'static,
impl<State, Body> Matcher<State, Request<Body>> for SocketMatcher<State, Request<Body>>where
State: 'static,
Body: 'static,
§fn matches(
&self,
ext: Option<&mut Extensions>,
ctx: &Context<State>,
req: &Request<Body>,
) -> bool
fn matches( &self, ext: Option<&mut Extensions>, ctx: &Context<State>, req: &Request<Body>, ) -> bool
§fn or<M>(self, other: M) -> impl Matcher<State, Request>
fn or<M>(self, other: M) -> impl Matcher<State, Request>
§impl<State, Body> Matcher<State, Request<Body>> for UriMatcher
impl<State, Body> Matcher<State, Request<Body>> for UriMatcher
§fn matches(
&self,
_ext: Option<&mut Extensions>,
_ctx: &Context<State>,
req: &Request<Body>,
) -> bool
fn matches( &self, _ext: Option<&mut Extensions>, _ctx: &Context<State>, req: &Request<Body>, ) -> bool
§fn or<M>(self, other: M) -> impl Matcher<State, Request>
fn or<M>(self, other: M) -> impl Matcher<State, Request>
§impl<State, Body> Matcher<State, Request<Body>> for VersionMatcher
impl<State, Body> Matcher<State, Request<Body>> for VersionMatcher
§fn matches(
&self,
_ext: Option<&mut Extensions>,
_ctx: &Context<State>,
req: &Request<Body>,
) -> bool
fn matches( &self, _ext: Option<&mut Extensions>, _ctx: &Context<State>, req: &Request<Body>, ) -> bool
returns true on a match, false otherwise
§fn or<M>(self, other: M) -> impl Matcher<State, Request>
fn or<M>(self, other: M) -> impl Matcher<State, Request>
source§impl Service<(), Request<Body>> for EchoService
impl Service<(), Request<Body>> for EchoService
source§impl Service<(), Request<Body>> for HttpEchoService
impl Service<(), Request<Body>> for HttpEchoService
§impl<State, Body, S> Service<State, Request<Body>> for DnsResolveModeService<S>
impl<State, Body, S> Service<State, Request<Body>> for DnsResolveModeService<S>
§type Response = <S as Service<State, Request<Body>>>::Response
type Response = <S as Service<State, Request<Body>>>::Response
§type Error = OpaqueError
type Error = OpaqueError
§async fn serve(
&self,
ctx: Context<State>,
request: Request<Body>,
) -> Result<<DnsResolveModeService<S> as Service<State, Request<Body>>>::Response, <DnsResolveModeService<S> as Service<State, Request<Body>>>::Error>
async fn serve( &self, ctx: Context<State>, request: Request<Body>, ) -> Result<<DnsResolveModeService<S> as Service<State, Request<Body>>>::Response, <DnsResolveModeService<S> as Service<State, Request<Body>>>::Error>
§fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
§impl<S, State, Body> Service<State, Request<Body>> for ErrorHandler<S>
impl<S, State, Body> Service<State, Request<Body>> for ErrorHandler<S>
§type Error = Infallible
type Error = Infallible
§async fn serve(
&self,
ctx: Context<State>,
req: Request<Body>,
) -> Result<<ErrorHandler<S> as Service<State, Request<Body>>>::Response, <ErrorHandler<S> as Service<State, Request<Body>>>::Error>
async fn serve( &self, ctx: Context<State>, req: Request<Body>, ) -> Result<<ErrorHandler<S> as Service<State, Request<Body>>>::Response, <ErrorHandler<S> as Service<State, Request<Body>>>::Error>
§fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
§impl<S, F, R, State, Body> Service<State, Request<Body>> for ErrorHandler<S, F>
impl<S, F, R, State, Body> Service<State, Request<Body>> for ErrorHandler<S, F>
§type Error = Infallible
type Error = Infallible
§async fn serve(
&self,
ctx: Context<State>,
req: Request<Body>,
) -> Result<<ErrorHandler<S, F> as Service<State, Request<Body>>>::Response, <ErrorHandler<S, F> as Service<State, Request<Body>>>::Error>
async fn serve( &self, ctx: Context<State>, req: Request<Body>, ) -> Result<<ErrorHandler<S, F> as Service<State, Request<Body>>>::Response, <ErrorHandler<S, F> as Service<State, Request<Body>>>::Error>
§fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
§impl<T1, S, State, Body> Service<State, Request<Body>> for GetForwardedHeadersService<S, (T1,)>
impl<T1, S, State, Body> Service<State, Request<Body>> for GetForwardedHeadersService<S, (T1,)>
§type Response = <S as Service<State, Request<Body>>>::Response
type Response = <S as Service<State, Request<Body>>>::Response
§fn serve(
&self,
ctx: Context<State>,
req: Request<Body>,
) -> impl Future<Output = Result<<GetForwardedHeadersService<S, (T1,)> as Service<State, Request<Body>>>::Response, <GetForwardedHeadersService<S, (T1,)> as Service<State, Request<Body>>>::Error>> + Send
fn serve( &self, ctx: Context<State>, req: Request<Body>, ) -> impl Future<Output = Result<<GetForwardedHeadersService<S, (T1,)> as Service<State, Request<Body>>>::Response, <GetForwardedHeadersService<S, (T1,)> as Service<State, Request<Body>>>::Error>> + Send
§fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
§impl<T1, T2, S, State, Body> Service<State, Request<Body>> for GetForwardedHeadersService<S, (T1, T2)>
impl<T1, T2, S, State, Body> Service<State, Request<Body>> for GetForwardedHeadersService<S, (T1, T2)>
§type Response = <S as Service<State, Request<Body>>>::Response
type Response = <S as Service<State, Request<Body>>>::Response
§fn serve(
&self,
ctx: Context<State>,
req: Request<Body>,
) -> impl Future<Output = Result<<GetForwardedHeadersService<S, (T1, T2)> as Service<State, Request<Body>>>::Response, <GetForwardedHeadersService<S, (T1, T2)> as Service<State, Request<Body>>>::Error>> + Send
fn serve( &self, ctx: Context<State>, req: Request<Body>, ) -> impl Future<Output = Result<<GetForwardedHeadersService<S, (T1, T2)> as Service<State, Request<Body>>>::Response, <GetForwardedHeadersService<S, (T1, T2)> as Service<State, Request<Body>>>::Error>> + Send
§fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
§impl<T1, T2, T3, S, State, Body> Service<State, Request<Body>> for GetForwardedHeadersService<S, (T1, T2, T3)>where
T1: ForwardHeader + Send + Sync + 'static,
T2: ForwardHeader + Send + Sync + 'static,
T3: ForwardHeader + Send + Sync + 'static,
S: Service<State, Request<Body>>,
Body: Send + 'static,
State: Clone + Send + Sync + 'static,
impl<T1, T2, T3, S, State, Body> Service<State, Request<Body>> for GetForwardedHeadersService<S, (T1, T2, T3)>where
T1: ForwardHeader + Send + Sync + 'static,
T2: ForwardHeader + Send + Sync + 'static,
T3: ForwardHeader + Send + Sync + 'static,
S: Service<State, Request<Body>>,
Body: Send + 'static,
State: Clone + Send + Sync + 'static,
§type Response = <S as Service<State, Request<Body>>>::Response
type Response = <S as Service<State, Request<Body>>>::Response
§fn serve(
&self,
ctx: Context<State>,
req: Request<Body>,
) -> impl Future<Output = Result<<GetForwardedHeadersService<S, (T1, T2, T3)> as Service<State, Request<Body>>>::Response, <GetForwardedHeadersService<S, (T1, T2, T3)> as Service<State, Request<Body>>>::Error>> + Send
fn serve( &self, ctx: Context<State>, req: Request<Body>, ) -> impl Future<Output = Result<<GetForwardedHeadersService<S, (T1, T2, T3)> as Service<State, Request<Body>>>::Response, <GetForwardedHeadersService<S, (T1, T2, T3)> as Service<State, Request<Body>>>::Error>> + Send
§fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
§impl<T1, T2, T3, T4, S, State, Body> Service<State, Request<Body>> for GetForwardedHeadersService<S, (T1, T2, T3, T4)>where
T1: ForwardHeader + Send + Sync + 'static,
T2: ForwardHeader + Send + Sync + 'static,
T3: ForwardHeader + Send + Sync + 'static,
T4: ForwardHeader + Send + Sync + 'static,
S: Service<State, Request<Body>>,
Body: Send + 'static,
State: Clone + Send + Sync + 'static,
impl<T1, T2, T3, T4, S, State, Body> Service<State, Request<Body>> for GetForwardedHeadersService<S, (T1, T2, T3, T4)>where
T1: ForwardHeader + Send + Sync + 'static,
T2: ForwardHeader + Send + Sync + 'static,
T3: ForwardHeader + Send + Sync + 'static,
T4: ForwardHeader + Send + Sync + 'static,
S: Service<State, Request<Body>>,
Body: Send + 'static,
State: Clone + Send + Sync + 'static,
§type Response = <S as Service<State, Request<Body>>>::Response
type Response = <S as Service<State, Request<Body>>>::Response
§fn serve(
&self,
ctx: Context<State>,
req: Request<Body>,
) -> impl Future<Output = Result<<GetForwardedHeadersService<S, (T1, T2, T3, T4)> as Service<State, Request<Body>>>::Response, <GetForwardedHeadersService<S, (T1, T2, T3, T4)> as Service<State, Request<Body>>>::Error>> + Send
fn serve( &self, ctx: Context<State>, req: Request<Body>, ) -> impl Future<Output = Result<<GetForwardedHeadersService<S, (T1, T2, T3, T4)> as Service<State, Request<Body>>>::Response, <GetForwardedHeadersService<S, (T1, T2, T3, T4)> as Service<State, Request<Body>>>::Error>> + Send
§fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
§impl<T1, T2, T3, T4, T5, S, State, Body> Service<State, Request<Body>> for GetForwardedHeadersService<S, (T1, T2, T3, T4, T5)>where
T1: ForwardHeader + Send + Sync + 'static,
T2: ForwardHeader + Send + Sync + 'static,
T3: ForwardHeader + Send + Sync + 'static,
T4: ForwardHeader + Send + Sync + 'static,
T5: ForwardHeader + Send + Sync + 'static,
S: Service<State, Request<Body>>,
Body: Send + 'static,
State: Clone + Send + Sync + 'static,
impl<T1, T2, T3, T4, T5, S, State, Body> Service<State, Request<Body>> for GetForwardedHeadersService<S, (T1, T2, T3, T4, T5)>where
T1: ForwardHeader + Send + Sync + 'static,
T2: ForwardHeader + Send + Sync + 'static,
T3: ForwardHeader + Send + Sync + 'static,
T4: ForwardHeader + Send + Sync + 'static,
T5: ForwardHeader + Send + Sync + 'static,
S: Service<State, Request<Body>>,
Body: Send + 'static,
State: Clone + Send + Sync + 'static,
§type Response = <S as Service<State, Request<Body>>>::Response
type Response = <S as Service<State, Request<Body>>>::Response
§fn serve(
&self,
ctx: Context<State>,
req: Request<Body>,
) -> impl Future<Output = Result<<GetForwardedHeadersService<S, (T1, T2, T3, T4, T5)> as Service<State, Request<Body>>>::Response, <GetForwardedHeadersService<S, (T1, T2, T3, T4, T5)> as Service<State, Request<Body>>>::Error>> + Send
fn serve( &self, ctx: Context<State>, req: Request<Body>, ) -> impl Future<Output = Result<<GetForwardedHeadersService<S, (T1, T2, T3, T4, T5)> as Service<State, Request<Body>>>::Response, <GetForwardedHeadersService<S, (T1, T2, T3, T4, T5)> as Service<State, Request<Body>>>::Error>> + Send
§fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
§impl<T1, T2, T3, T4, T5, T6, S, State, Body> Service<State, Request<Body>> for GetForwardedHeadersService<S, (T1, T2, T3, T4, T5, T6)>where
T1: ForwardHeader + Send + Sync + 'static,
T2: ForwardHeader + Send + Sync + 'static,
T3: ForwardHeader + Send + Sync + 'static,
T4: ForwardHeader + Send + Sync + 'static,
T5: ForwardHeader + Send + Sync + 'static,
T6: ForwardHeader + Send + Sync + 'static,
S: Service<State, Request<Body>>,
Body: Send + 'static,
State: Clone + Send + Sync + 'static,
impl<T1, T2, T3, T4, T5, T6, S, State, Body> Service<State, Request<Body>> for GetForwardedHeadersService<S, (T1, T2, T3, T4, T5, T6)>where
T1: ForwardHeader + Send + Sync + 'static,
T2: ForwardHeader + Send + Sync + 'static,
T3: ForwardHeader + Send + Sync + 'static,
T4: ForwardHeader + Send + Sync + 'static,
T5: ForwardHeader + Send + Sync + 'static,
T6: ForwardHeader + Send + Sync + 'static,
S: Service<State, Request<Body>>,
Body: Send + 'static,
State: Clone + Send + Sync + 'static,
§type Response = <S as Service<State, Request<Body>>>::Response
type Response = <S as Service<State, Request<Body>>>::Response
§fn serve(
&self,
ctx: Context<State>,
req: Request<Body>,
) -> impl Future<Output = Result<<GetForwardedHeadersService<S, (T1, T2, T3, T4, T5, T6)> as Service<State, Request<Body>>>::Response, <GetForwardedHeadersService<S, (T1, T2, T3, T4, T5, T6)> as Service<State, Request<Body>>>::Error>> + Send
fn serve( &self, ctx: Context<State>, req: Request<Body>, ) -> impl Future<Output = Result<<GetForwardedHeadersService<S, (T1, T2, T3, T4, T5, T6)> as Service<State, Request<Body>>>::Response, <GetForwardedHeadersService<S, (T1, T2, T3, T4, T5, T6)> as Service<State, Request<Body>>>::Error>> + Send
§fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
§impl<T1, T2, T3, T4, T5, T6, T7, S, State, Body> Service<State, Request<Body>> for GetForwardedHeadersService<S, (T1, T2, T3, T4, T5, T6, T7)>where
T1: ForwardHeader + Send + Sync + 'static,
T2: ForwardHeader + Send + Sync + 'static,
T3: ForwardHeader + Send + Sync + 'static,
T4: ForwardHeader + Send + Sync + 'static,
T5: ForwardHeader + Send + Sync + 'static,
T6: ForwardHeader + Send + Sync + 'static,
T7: ForwardHeader + Send + Sync + 'static,
S: Service<State, Request<Body>>,
Body: Send + 'static,
State: Clone + Send + Sync + 'static,
impl<T1, T2, T3, T4, T5, T6, T7, S, State, Body> Service<State, Request<Body>> for GetForwardedHeadersService<S, (T1, T2, T3, T4, T5, T6, T7)>where
T1: ForwardHeader + Send + Sync + 'static,
T2: ForwardHeader + Send + Sync + 'static,
T3: ForwardHeader + Send + Sync + 'static,
T4: ForwardHeader + Send + Sync + 'static,
T5: ForwardHeader + Send + Sync + 'static,
T6: ForwardHeader + Send + Sync + 'static,
T7: ForwardHeader + Send + Sync + 'static,
S: Service<State, Request<Body>>,
Body: Send + 'static,
State: Clone + Send + Sync + 'static,
§type Response = <S as Service<State, Request<Body>>>::Response
type Response = <S as Service<State, Request<Body>>>::Response
§fn serve(
&self,
ctx: Context<State>,
req: Request<Body>,
) -> impl Future<Output = Result<<GetForwardedHeadersService<S, (T1, T2, T3, T4, T5, T6, T7)> as Service<State, Request<Body>>>::Response, <GetForwardedHeadersService<S, (T1, T2, T3, T4, T5, T6, T7)> as Service<State, Request<Body>>>::Error>> + Send
fn serve( &self, ctx: Context<State>, req: Request<Body>, ) -> impl Future<Output = Result<<GetForwardedHeadersService<S, (T1, T2, T3, T4, T5, T6, T7)> as Service<State, Request<Body>>>::Response, <GetForwardedHeadersService<S, (T1, T2, T3, T4, T5, T6, T7)> as Service<State, Request<Body>>>::Error>> + Send
§fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
§impl<T1, T2, T3, T4, T5, T6, T7, T8, S, State, Body> Service<State, Request<Body>> for GetForwardedHeadersService<S, (T1, T2, T3, T4, T5, T6, T7, T8)>where
T1: ForwardHeader + Send + Sync + 'static,
T2: ForwardHeader + Send + Sync + 'static,
T3: ForwardHeader + Send + Sync + 'static,
T4: ForwardHeader + Send + Sync + 'static,
T5: ForwardHeader + Send + Sync + 'static,
T6: ForwardHeader + Send + Sync + 'static,
T7: ForwardHeader + Send + Sync + 'static,
T8: ForwardHeader + Send + Sync + 'static,
S: Service<State, Request<Body>>,
Body: Send + 'static,
State: Clone + Send + Sync + 'static,
impl<T1, T2, T3, T4, T5, T6, T7, T8, S, State, Body> Service<State, Request<Body>> for GetForwardedHeadersService<S, (T1, T2, T3, T4, T5, T6, T7, T8)>where
T1: ForwardHeader + Send + Sync + 'static,
T2: ForwardHeader + Send + Sync + 'static,
T3: ForwardHeader + Send + Sync + 'static,
T4: ForwardHeader + Send + Sync + 'static,
T5: ForwardHeader + Send + Sync + 'static,
T6: ForwardHeader + Send + Sync + 'static,
T7: ForwardHeader + Send + Sync + 'static,
T8: ForwardHeader + Send + Sync + 'static,
S: Service<State, Request<Body>>,
Body: Send + 'static,
State: Clone + Send + Sync + 'static,
§type Response = <S as Service<State, Request<Body>>>::Response
type Response = <S as Service<State, Request<Body>>>::Response
§fn serve(
&self,
ctx: Context<State>,
req: Request<Body>,
) -> impl Future<Output = Result<<GetForwardedHeadersService<S, (T1, T2, T3, T4, T5, T6, T7, T8)> as Service<State, Request<Body>>>::Response, <GetForwardedHeadersService<S, (T1, T2, T3, T4, T5, T6, T7, T8)> as Service<State, Request<Body>>>::Error>> + Send
fn serve( &self, ctx: Context<State>, req: Request<Body>, ) -> impl Future<Output = Result<<GetForwardedHeadersService<S, (T1, T2, T3, T4, T5, T6, T7, T8)> as Service<State, Request<Body>>>::Response, <GetForwardedHeadersService<S, (T1, T2, T3, T4, T5, T6, T7, T8)> as Service<State, Request<Body>>>::Error>> + Send
§fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
§impl<T1, T2, T3, T4, T5, T6, T7, T8, T9, S, State, Body> Service<State, Request<Body>> for GetForwardedHeadersService<S, (T1, T2, T3, T4, T5, T6, T7, T8, T9)>where
T1: ForwardHeader + Send + Sync + 'static,
T2: ForwardHeader + Send + Sync + 'static,
T3: ForwardHeader + Send + Sync + 'static,
T4: ForwardHeader + Send + Sync + 'static,
T5: ForwardHeader + Send + Sync + 'static,
T6: ForwardHeader + Send + Sync + 'static,
T7: ForwardHeader + Send + Sync + 'static,
T8: ForwardHeader + Send + Sync + 'static,
T9: ForwardHeader + Send + Sync + 'static,
S: Service<State, Request<Body>>,
Body: Send + 'static,
State: Clone + Send + Sync + 'static,
impl<T1, T2, T3, T4, T5, T6, T7, T8, T9, S, State, Body> Service<State, Request<Body>> for GetForwardedHeadersService<S, (T1, T2, T3, T4, T5, T6, T7, T8, T9)>where
T1: ForwardHeader + Send + Sync + 'static,
T2: ForwardHeader + Send + Sync + 'static,
T3: ForwardHeader + Send + Sync + 'static,
T4: ForwardHeader + Send + Sync + 'static,
T5: ForwardHeader + Send + Sync + 'static,
T6: ForwardHeader + Send + Sync + 'static,
T7: ForwardHeader + Send + Sync + 'static,
T8: ForwardHeader + Send + Sync + 'static,
T9: ForwardHeader + Send + Sync + 'static,
S: Service<State, Request<Body>>,
Body: Send + 'static,
State: Clone + Send + Sync + 'static,
§type Response = <S as Service<State, Request<Body>>>::Response
type Response = <S as Service<State, Request<Body>>>::Response
§fn serve(
&self,
ctx: Context<State>,
req: Request<Body>,
) -> impl Future<Output = Result<<GetForwardedHeadersService<S, (T1, T2, T3, T4, T5, T6, T7, T8, T9)> as Service<State, Request<Body>>>::Response, <GetForwardedHeadersService<S, (T1, T2, T3, T4, T5, T6, T7, T8, T9)> as Service<State, Request<Body>>>::Error>> + Send
fn serve( &self, ctx: Context<State>, req: Request<Body>, ) -> impl Future<Output = Result<<GetForwardedHeadersService<S, (T1, T2, T3, T4, T5, T6, T7, T8, T9)> as Service<State, Request<Body>>>::Response, <GetForwardedHeadersService<S, (T1, T2, T3, T4, T5, T6, T7, T8, T9)> as Service<State, Request<Body>>>::Error>> + Send
§fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
§impl<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, S, State, Body> Service<State, Request<Body>> for GetForwardedHeadersService<S, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)>where
T1: ForwardHeader + Send + Sync + 'static,
T2: ForwardHeader + Send + Sync + 'static,
T3: ForwardHeader + Send + Sync + 'static,
T4: ForwardHeader + Send + Sync + 'static,
T5: ForwardHeader + Send + Sync + 'static,
T6: ForwardHeader + Send + Sync + 'static,
T7: ForwardHeader + Send + Sync + 'static,
T8: ForwardHeader + Send + Sync + 'static,
T9: ForwardHeader + Send + Sync + 'static,
T10: ForwardHeader + Send + Sync + 'static,
S: Service<State, Request<Body>>,
Body: Send + 'static,
State: Clone + Send + Sync + 'static,
impl<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, S, State, Body> Service<State, Request<Body>> for GetForwardedHeadersService<S, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)>where
T1: ForwardHeader + Send + Sync + 'static,
T2: ForwardHeader + Send + Sync + 'static,
T3: ForwardHeader + Send + Sync + 'static,
T4: ForwardHeader + Send + Sync + 'static,
T5: ForwardHeader + Send + Sync + 'static,
T6: ForwardHeader + Send + Sync + 'static,
T7: ForwardHeader + Send + Sync + 'static,
T8: ForwardHeader + Send + Sync + 'static,
T9: ForwardHeader + Send + Sync + 'static,
T10: ForwardHeader + Send + Sync + 'static,
S: Service<State, Request<Body>>,
Body: Send + 'static,
State: Clone + Send + Sync + 'static,
§type Response = <S as Service<State, Request<Body>>>::Response
type Response = <S as Service<State, Request<Body>>>::Response
§fn serve(
&self,
ctx: Context<State>,
req: Request<Body>,
) -> impl Future<Output = Result<<GetForwardedHeadersService<S, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)> as Service<State, Request<Body>>>::Response, <GetForwardedHeadersService<S, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)> as Service<State, Request<Body>>>::Error>> + Send
fn serve( &self, ctx: Context<State>, req: Request<Body>, ) -> impl Future<Output = Result<<GetForwardedHeadersService<S, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)> as Service<State, Request<Body>>>::Response, <GetForwardedHeadersService<S, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)> as Service<State, Request<Body>>>::Error>> + Send
§fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
§impl<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, S, State, Body> Service<State, Request<Body>> for GetForwardedHeadersService<S, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)>where
T1: ForwardHeader + Send + Sync + 'static,
T2: ForwardHeader + Send + Sync + 'static,
T3: ForwardHeader + Send + Sync + 'static,
T4: ForwardHeader + Send + Sync + 'static,
T5: ForwardHeader + Send + Sync + 'static,
T6: ForwardHeader + Send + Sync + 'static,
T7: ForwardHeader + Send + Sync + 'static,
T8: ForwardHeader + Send + Sync + 'static,
T9: ForwardHeader + Send + Sync + 'static,
T10: ForwardHeader + Send + Sync + 'static,
T11: ForwardHeader + Send + Sync + 'static,
S: Service<State, Request<Body>>,
Body: Send + 'static,
State: Clone + Send + Sync + 'static,
impl<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, S, State, Body> Service<State, Request<Body>> for GetForwardedHeadersService<S, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)>where
T1: ForwardHeader + Send + Sync + 'static,
T2: ForwardHeader + Send + Sync + 'static,
T3: ForwardHeader + Send + Sync + 'static,
T4: ForwardHeader + Send + Sync + 'static,
T5: ForwardHeader + Send + Sync + 'static,
T6: ForwardHeader + Send + Sync + 'static,
T7: ForwardHeader + Send + Sync + 'static,
T8: ForwardHeader + Send + Sync + 'static,
T9: ForwardHeader + Send + Sync + 'static,
T10: ForwardHeader + Send + Sync + 'static,
T11: ForwardHeader + Send + Sync + 'static,
S: Service<State, Request<Body>>,
Body: Send + 'static,
State: Clone + Send + Sync + 'static,
§type Response = <S as Service<State, Request<Body>>>::Response
type Response = <S as Service<State, Request<Body>>>::Response
§fn serve(
&self,
ctx: Context<State>,
req: Request<Body>,
) -> impl Future<Output = Result<<GetForwardedHeadersService<S, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)> as Service<State, Request<Body>>>::Response, <GetForwardedHeadersService<S, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)> as Service<State, Request<Body>>>::Error>> + Send
fn serve( &self, ctx: Context<State>, req: Request<Body>, ) -> impl Future<Output = Result<<GetForwardedHeadersService<S, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)> as Service<State, Request<Body>>>::Response, <GetForwardedHeadersService<S, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)> as Service<State, Request<Body>>>::Error>> + Send
§fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
§impl<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, S, State, Body> Service<State, Request<Body>> for GetForwardedHeadersService<S, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)>where
T1: ForwardHeader + Send + Sync + 'static,
T2: ForwardHeader + Send + Sync + 'static,
T3: ForwardHeader + Send + Sync + 'static,
T4: ForwardHeader + Send + Sync + 'static,
T5: ForwardHeader + Send + Sync + 'static,
T6: ForwardHeader + Send + Sync + 'static,
T7: ForwardHeader + Send + Sync + 'static,
T8: ForwardHeader + Send + Sync + 'static,
T9: ForwardHeader + Send + Sync + 'static,
T10: ForwardHeader + Send + Sync + 'static,
T11: ForwardHeader + Send + Sync + 'static,
T12: ForwardHeader + Send + Sync + 'static,
S: Service<State, Request<Body>>,
Body: Send + 'static,
State: Clone + Send + Sync + 'static,
impl<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, S, State, Body> Service<State, Request<Body>> for GetForwardedHeadersService<S, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)>where
T1: ForwardHeader + Send + Sync + 'static,
T2: ForwardHeader + Send + Sync + 'static,
T3: ForwardHeader + Send + Sync + 'static,
T4: ForwardHeader + Send + Sync + 'static,
T5: ForwardHeader + Send + Sync + 'static,
T6: ForwardHeader + Send + Sync + 'static,
T7: ForwardHeader + Send + Sync + 'static,
T8: ForwardHeader + Send + Sync + 'static,
T9: ForwardHeader + Send + Sync + 'static,
T10: ForwardHeader + Send + Sync + 'static,
T11: ForwardHeader + Send + Sync + 'static,
T12: ForwardHeader + Send + Sync + 'static,
S: Service<State, Request<Body>>,
Body: Send + 'static,
State: Clone + Send + Sync + 'static,
§type Response = <S as Service<State, Request<Body>>>::Response
type Response = <S as Service<State, Request<Body>>>::Response
§fn serve(
&self,
ctx: Context<State>,
req: Request<Body>,
) -> impl Future<Output = Result<<GetForwardedHeadersService<S, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)> as Service<State, Request<Body>>>::Response, <GetForwardedHeadersService<S, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)> as Service<State, Request<Body>>>::Error>> + Send
fn serve( &self, ctx: Context<State>, req: Request<Body>, ) -> impl Future<Output = Result<<GetForwardedHeadersService<S, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)> as Service<State, Request<Body>>>::Response, <GetForwardedHeadersService<S, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)> as Service<State, Request<Body>>>::Error>> + Send
§fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
§impl<H, S, State, Body> Service<State, Request<Body>> for GetForwardedHeadersService<S, H>
impl<H, S, State, Body> Service<State, Request<Body>> for GetForwardedHeadersService<S, H>
§type Response = <S as Service<State, Request<Body>>>::Response
type Response = <S as Service<State, Request<Body>>>::Response
§fn serve(
&self,
ctx: Context<State>,
req: Request<Body>,
) -> impl Future<Output = Result<<GetForwardedHeadersService<S, H> as Service<State, Request<Body>>>::Response, <GetForwardedHeadersService<S, H> as Service<State, Request<Body>>>::Error>> + Send
fn serve( &self, ctx: Context<State>, req: Request<Body>, ) -> impl Future<Output = Result<<GetForwardedHeadersService<S, H> as Service<State, Request<Body>>>::Response, <GetForwardedHeadersService<S, H> as Service<State, Request<Body>>>::Error>> + Send
§fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
§impl<T, S, State, Body, E> Service<State, Request<Body>> for HeaderConfigService<T, S>
impl<T, S, State, Body, E> Service<State, Request<Body>> for HeaderConfigService<T, S>
§type Response = <S as Service<State, Request<Body>>>::Response
type Response = <S as Service<State, Request<Body>>>::Response
§async fn serve(
&self,
ctx: Context<State>,
request: Request<Body>,
) -> Result<<HeaderConfigService<T, S> as Service<State, Request<Body>>>::Response, <HeaderConfigService<T, S> as Service<State, Request<Body>>>::Error>
async fn serve( &self, ctx: Context<State>, request: Request<Body>, ) -> Result<<HeaderConfigService<T, S> as Service<State, Request<Body>>>::Response, <HeaderConfigService<T, S> as Service<State, Request<Body>>>::Error>
§fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
§impl<T, S, State, Body, E> Service<State, Request<Body>> for HeaderOptionValueService<T, S>
impl<T, S, State, Body, E> Service<State, Request<Body>> for HeaderOptionValueService<T, S>
§type Response = <S as Service<State, Request<Body>>>::Response
type Response = <S as Service<State, Request<Body>>>::Response
§async fn serve(
&self,
ctx: Context<State>,
request: Request<Body>,
) -> Result<<HeaderOptionValueService<T, S> as Service<State, Request<Body>>>::Response, <HeaderOptionValueService<T, S> as Service<State, Request<Body>>>::Error>
async fn serve( &self, ctx: Context<State>, request: Request<Body>, ) -> Result<<HeaderOptionValueService<T, S> as Service<State, Request<Body>>>::Response, <HeaderOptionValueService<T, S> as Service<State, Request<Body>>>::Error>
§fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
§impl<State, Body> Service<State, Request<Body>> for HttpClient
impl<State, Body> Service<State, Request<Body>> for HttpClient
§type Error = OpaqueError
type Error = OpaqueError
§async fn serve(
&self,
ctx: Context<State>,
req: Request<Body>,
) -> Result<<HttpClient as Service<State, Request<Body>>>::Response, <HttpClient as Service<State, Request<Body>>>::Error>
async fn serve( &self, ctx: Context<State>, req: Request<Body>, ) -> Result<<HttpClient as Service<State, Request<Body>>>::Response, <HttpClient as Service<State, Request<Body>>>::Error>
§fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
§impl<State, Body> Service<State, Request<Body>> for HttpClientService<Body>
impl<State, Body> Service<State, Request<Body>> for HttpClientService<Body>
§async fn serve(
&self,
ctx: Context<State>,
req: Request<Body>,
) -> Result<<HttpClientService<Body> as Service<State, Request<Body>>>::Response, <HttpClientService<Body> as Service<State, Request<Body>>>::Error>
async fn serve( &self, ctx: Context<State>, req: Request<Body>, ) -> Result<<HttpClientService<Body> as Service<State, Request<Body>>>::Response, <HttpClientService<Body> as Service<State, Request<Body>>>::Error>
§fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
§impl<S, State, Body> Service<State, Request<Body>> for HttpConnector<S>where
S: ConnectorService<State, Request<Body>>,
<S as ConnectorService<State, Request<Body>>>::Connection: Stream + Unpin,
<S as ConnectorService<State, Request<Body>>>::Error: Into<Box<dyn Error + Send + Sync>>,
State: Clone + Send + Sync + 'static,
Body: Body + Unpin + Send + 'static,
<Body as Body>::Data: Send + 'static,
<Body as Body>::Error: Into<Box<dyn Error + Send + Sync>>,
impl<S, State, Body> Service<State, Request<Body>> for HttpConnector<S>where
S: ConnectorService<State, Request<Body>>,
<S as ConnectorService<State, Request<Body>>>::Connection: Stream + Unpin,
<S as ConnectorService<State, Request<Body>>>::Error: Into<Box<dyn Error + Send + Sync>>,
State: Clone + Send + Sync + 'static,
Body: Body + Unpin + Send + 'static,
<Body as Body>::Data: Send + 'static,
<Body as Body>::Error: Into<Box<dyn Error + Send + Sync>>,
§type Response = EstablishedClientConnection<HttpClientService<Body>, State, Request<Body>>
type Response = EstablishedClientConnection<HttpClientService<Body>, State, Request<Body>>
§async fn serve(
&self,
ctx: Context<State>,
req: Request<Body>,
) -> Result<<HttpConnector<S> as Service<State, Request<Body>>>::Response, <HttpConnector<S> as Service<State, Request<Body>>>::Error>
async fn serve( &self, ctx: Context<State>, req: Request<Body>, ) -> Result<<HttpConnector<S> as Service<State, Request<Body>>>::Response, <HttpConnector<S> as Service<State, Request<Body>>>::Error>
§fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
§impl<State, Body, ResBody> Service<State, Request<Body>> for Redirect<ResBody>
impl<State, Body, ResBody> Service<State, Request<Body>> for Redirect<ResBody>
§type Error = Infallible
type Error = Infallible
§async fn serve(
&self,
_ctx: Context<State>,
_req: Request<Body>,
) -> Result<<Redirect<ResBody> as Service<State, Request<Body>>>::Response, <Redirect<ResBody> as Service<State, Request<Body>>>::Error>
async fn serve( &self, _ctx: Context<State>, _req: Request<Body>, ) -> Result<<Redirect<ResBody> as Service<State, Request<Body>>>::Response, <Redirect<ResBody> as Service<State, Request<Body>>>::Error>
§fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
§impl<S, F, State, Body> Service<State, Request<Body>> for RequestMetricsService<S, F>
impl<S, F, State, Body> Service<State, Request<Body>> for RequestMetricsService<S, F>
§async fn serve(
&self,
ctx: Context<State>,
req: Request<Body>,
) -> Result<<RequestMetricsService<S, F> as Service<State, Request<Body>>>::Response, <RequestMetricsService<S, F> as Service<State, Request<Body>>>::Error>
async fn serve( &self, ctx: Context<State>, req: Request<Body>, ) -> Result<<RequestMetricsService<S, F> as Service<State, Request<Body>>>::Response, <RequestMetricsService<S, F> as Service<State, Request<Body>>>::Error>
§fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
§impl<P, S, State, Body> Service<State, Request<Body>> for Retry<P, S>where
P: Policy<State, <S as Service<State, Request<RetryBody>>>::Response, <S as Service<State, Request<RetryBody>>>::Error>,
S: Service<State, Request<RetryBody>>,
<S as Service<State, Request<RetryBody>>>::Error: Into<Box<dyn Error + Send + Sync>>,
State: Clone + Send + Sync + 'static,
Body: Body + Send + 'static,
<Body as Body>::Data: Send + 'static,
<Body as Body>::Error: Into<Box<dyn Error + Send + Sync>>,
impl<P, S, State, Body> Service<State, Request<Body>> for Retry<P, S>where
P: Policy<State, <S as Service<State, Request<RetryBody>>>::Response, <S as Service<State, Request<RetryBody>>>::Error>,
S: Service<State, Request<RetryBody>>,
<S as Service<State, Request<RetryBody>>>::Error: Into<Box<dyn Error + Send + Sync>>,
State: Clone + Send + Sync + 'static,
Body: Body + Send + 'static,
<Body as Body>::Data: Send + 'static,
<Body as Body>::Error: Into<Box<dyn Error + Send + Sync>>,
§type Response = <S as Service<State, Request<RetryBody>>>::Response
type Response = <S as Service<State, Request<RetryBody>>>::Response
§type Error = RetryError
type Error = RetryError
§async fn serve(
&self,
ctx: Context<State>,
request: Request<Body>,
) -> Result<<Retry<P, S> as Service<State, Request<Body>>>::Response, <Retry<P, S> as Service<State, Request<Body>>>::Error>
async fn serve( &self, ctx: Context<State>, request: Request<Body>, ) -> Result<<Retry<P, S> as Service<State, Request<Body>>>::Response, <Retry<P, S> as Service<State, Request<Body>>>::Error>
§fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
§impl<S, T1, State, Body> Service<State, Request<Body>> for SetForwardedHeadersService<S, (T1,)>
impl<S, T1, State, Body> Service<State, Request<Body>> for SetForwardedHeadersService<S, (T1,)>
§type Response = <S as Service<State, Request<Body>>>::Response
type Response = <S as Service<State, Request<Body>>>::Response
§async fn serve(
&self,
ctx: Context<State>,
req: Request<Body>,
) -> Result<<SetForwardedHeadersService<S, (T1,)> as Service<State, Request<Body>>>::Response, <SetForwardedHeadersService<S, (T1,)> as Service<State, Request<Body>>>::Error>
async fn serve( &self, ctx: Context<State>, req: Request<Body>, ) -> Result<<SetForwardedHeadersService<S, (T1,)> as Service<State, Request<Body>>>::Response, <SetForwardedHeadersService<S, (T1,)> as Service<State, Request<Body>>>::Error>
§fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
§impl<S, T1, T2, State, Body> Service<State, Request<Body>> for SetForwardedHeadersService<S, (T1, T2)>
impl<S, T1, T2, State, Body> Service<State, Request<Body>> for SetForwardedHeadersService<S, (T1, T2)>
§type Response = <S as Service<State, Request<Body>>>::Response
type Response = <S as Service<State, Request<Body>>>::Response
§async fn serve(
&self,
ctx: Context<State>,
req: Request<Body>,
) -> Result<<SetForwardedHeadersService<S, (T1, T2)> as Service<State, Request<Body>>>::Response, <SetForwardedHeadersService<S, (T1, T2)> as Service<State, Request<Body>>>::Error>
async fn serve( &self, ctx: Context<State>, req: Request<Body>, ) -> Result<<SetForwardedHeadersService<S, (T1, T2)> as Service<State, Request<Body>>>::Response, <SetForwardedHeadersService<S, (T1, T2)> as Service<State, Request<Body>>>::Error>
§fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
§impl<S, T1, T2, T3, State, Body> Service<State, Request<Body>> for SetForwardedHeadersService<S, (T1, T2, T3)>where
T1: ForwardHeader + Send + Sync + 'static,
T2: ForwardHeader + Send + Sync + 'static,
T3: ForwardHeader + Send + Sync + 'static,
S: Service<State, Request<Body>>,
<S as Service<State, Request<Body>>>::Error: Into<Box<dyn Error + Send + Sync>>,
Body: Send + 'static,
State: Clone + Send + Sync + 'static,
impl<S, T1, T2, T3, State, Body> Service<State, Request<Body>> for SetForwardedHeadersService<S, (T1, T2, T3)>where
T1: ForwardHeader + Send + Sync + 'static,
T2: ForwardHeader + Send + Sync + 'static,
T3: ForwardHeader + Send + Sync + 'static,
S: Service<State, Request<Body>>,
<S as Service<State, Request<Body>>>::Error: Into<Box<dyn Error + Send + Sync>>,
Body: Send + 'static,
State: Clone + Send + Sync + 'static,
§type Response = <S as Service<State, Request<Body>>>::Response
type Response = <S as Service<State, Request<Body>>>::Response
§async fn serve(
&self,
ctx: Context<State>,
req: Request<Body>,
) -> Result<<SetForwardedHeadersService<S, (T1, T2, T3)> as Service<State, Request<Body>>>::Response, <SetForwardedHeadersService<S, (T1, T2, T3)> as Service<State, Request<Body>>>::Error>
async fn serve( &self, ctx: Context<State>, req: Request<Body>, ) -> Result<<SetForwardedHeadersService<S, (T1, T2, T3)> as Service<State, Request<Body>>>::Response, <SetForwardedHeadersService<S, (T1, T2, T3)> as Service<State, Request<Body>>>::Error>
§fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
§impl<S, T1, T2, T3, T4, State, Body> Service<State, Request<Body>> for SetForwardedHeadersService<S, (T1, T2, T3, T4)>where
T1: ForwardHeader + Send + Sync + 'static,
T2: ForwardHeader + Send + Sync + 'static,
T3: ForwardHeader + Send + Sync + 'static,
T4: ForwardHeader + Send + Sync + 'static,
S: Service<State, Request<Body>>,
<S as Service<State, Request<Body>>>::Error: Into<Box<dyn Error + Send + Sync>>,
Body: Send + 'static,
State: Clone + Send + Sync + 'static,
impl<S, T1, T2, T3, T4, State, Body> Service<State, Request<Body>> for SetForwardedHeadersService<S, (T1, T2, T3, T4)>where
T1: ForwardHeader + Send + Sync + 'static,
T2: ForwardHeader + Send + Sync + 'static,
T3: ForwardHeader + Send + Sync + 'static,
T4: ForwardHeader + Send + Sync + 'static,
S: Service<State, Request<Body>>,
<S as Service<State, Request<Body>>>::Error: Into<Box<dyn Error + Send + Sync>>,
Body: Send + 'static,
State: Clone + Send + Sync + 'static,
§type Response = <S as Service<State, Request<Body>>>::Response
type Response = <S as Service<State, Request<Body>>>::Response
§async fn serve(
&self,
ctx: Context<State>,
req: Request<Body>,
) -> Result<<SetForwardedHeadersService<S, (T1, T2, T3, T4)> as Service<State, Request<Body>>>::Response, <SetForwardedHeadersService<S, (T1, T2, T3, T4)> as Service<State, Request<Body>>>::Error>
async fn serve( &self, ctx: Context<State>, req: Request<Body>, ) -> Result<<SetForwardedHeadersService<S, (T1, T2, T3, T4)> as Service<State, Request<Body>>>::Response, <SetForwardedHeadersService<S, (T1, T2, T3, T4)> as Service<State, Request<Body>>>::Error>
§fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
§impl<S, T1, T2, T3, T4, T5, State, Body> Service<State, Request<Body>> for SetForwardedHeadersService<S, (T1, T2, T3, T4, T5)>where
T1: ForwardHeader + Send + Sync + 'static,
T2: ForwardHeader + Send + Sync + 'static,
T3: ForwardHeader + Send + Sync + 'static,
T4: ForwardHeader + Send + Sync + 'static,
T5: ForwardHeader + Send + Sync + 'static,
S: Service<State, Request<Body>>,
<S as Service<State, Request<Body>>>::Error: Into<Box<dyn Error + Send + Sync>>,
Body: Send + 'static,
State: Clone + Send + Sync + 'static,
impl<S, T1, T2, T3, T4, T5, State, Body> Service<State, Request<Body>> for SetForwardedHeadersService<S, (T1, T2, T3, T4, T5)>where
T1: ForwardHeader + Send + Sync + 'static,
T2: ForwardHeader + Send + Sync + 'static,
T3: ForwardHeader + Send + Sync + 'static,
T4: ForwardHeader + Send + Sync + 'static,
T5: ForwardHeader + Send + Sync + 'static,
S: Service<State, Request<Body>>,
<S as Service<State, Request<Body>>>::Error: Into<Box<dyn Error + Send + Sync>>,
Body: Send + 'static,
State: Clone + Send + Sync + 'static,
§type Response = <S as Service<State, Request<Body>>>::Response
type Response = <S as Service<State, Request<Body>>>::Response
§async fn serve(
&self,
ctx: Context<State>,
req: Request<Body>,
) -> Result<<SetForwardedHeadersService<S, (T1, T2, T3, T4, T5)> as Service<State, Request<Body>>>::Response, <SetForwardedHeadersService<S, (T1, T2, T3, T4, T5)> as Service<State, Request<Body>>>::Error>
async fn serve( &self, ctx: Context<State>, req: Request<Body>, ) -> Result<<SetForwardedHeadersService<S, (T1, T2, T3, T4, T5)> as Service<State, Request<Body>>>::Response, <SetForwardedHeadersService<S, (T1, T2, T3, T4, T5)> as Service<State, Request<Body>>>::Error>
§fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
§impl<S, T1, T2, T3, T4, T5, T6, State, Body> Service<State, Request<Body>> for SetForwardedHeadersService<S, (T1, T2, T3, T4, T5, T6)>where
T1: ForwardHeader + Send + Sync + 'static,
T2: ForwardHeader + Send + Sync + 'static,
T3: ForwardHeader + Send + Sync + 'static,
T4: ForwardHeader + Send + Sync + 'static,
T5: ForwardHeader + Send + Sync + 'static,
T6: ForwardHeader + Send + Sync + 'static,
S: Service<State, Request<Body>>,
<S as Service<State, Request<Body>>>::Error: Into<Box<dyn Error + Send + Sync>>,
Body: Send + 'static,
State: Clone + Send + Sync + 'static,
impl<S, T1, T2, T3, T4, T5, T6, State, Body> Service<State, Request<Body>> for SetForwardedHeadersService<S, (T1, T2, T3, T4, T5, T6)>where
T1: ForwardHeader + Send + Sync + 'static,
T2: ForwardHeader + Send + Sync + 'static,
T3: ForwardHeader + Send + Sync + 'static,
T4: ForwardHeader + Send + Sync + 'static,
T5: ForwardHeader + Send + Sync + 'static,
T6: ForwardHeader + Send + Sync + 'static,
S: Service<State, Request<Body>>,
<S as Service<State, Request<Body>>>::Error: Into<Box<dyn Error + Send + Sync>>,
Body: Send + 'static,
State: Clone + Send + Sync + 'static,
§type Response = <S as Service<State, Request<Body>>>::Response
type Response = <S as Service<State, Request<Body>>>::Response
§async fn serve(
&self,
ctx: Context<State>,
req: Request<Body>,
) -> Result<<SetForwardedHeadersService<S, (T1, T2, T3, T4, T5, T6)> as Service<State, Request<Body>>>::Response, <SetForwardedHeadersService<S, (T1, T2, T3, T4, T5, T6)> as Service<State, Request<Body>>>::Error>
async fn serve( &self, ctx: Context<State>, req: Request<Body>, ) -> Result<<SetForwardedHeadersService<S, (T1, T2, T3, T4, T5, T6)> as Service<State, Request<Body>>>::Response, <SetForwardedHeadersService<S, (T1, T2, T3, T4, T5, T6)> as Service<State, Request<Body>>>::Error>
§fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
§impl<S, T1, T2, T3, T4, T5, T6, T7, State, Body> Service<State, Request<Body>> for SetForwardedHeadersService<S, (T1, T2, T3, T4, T5, T6, T7)>where
T1: ForwardHeader + Send + Sync + 'static,
T2: ForwardHeader + Send + Sync + 'static,
T3: ForwardHeader + Send + Sync + 'static,
T4: ForwardHeader + Send + Sync + 'static,
T5: ForwardHeader + Send + Sync + 'static,
T6: ForwardHeader + Send + Sync + 'static,
T7: ForwardHeader + Send + Sync + 'static,
S: Service<State, Request<Body>>,
<S as Service<State, Request<Body>>>::Error: Into<Box<dyn Error + Send + Sync>>,
Body: Send + 'static,
State: Clone + Send + Sync + 'static,
impl<S, T1, T2, T3, T4, T5, T6, T7, State, Body> Service<State, Request<Body>> for SetForwardedHeadersService<S, (T1, T2, T3, T4, T5, T6, T7)>where
T1: ForwardHeader + Send + Sync + 'static,
T2: ForwardHeader + Send + Sync + 'static,
T3: ForwardHeader + Send + Sync + 'static,
T4: ForwardHeader + Send + Sync + 'static,
T5: ForwardHeader + Send + Sync + 'static,
T6: ForwardHeader + Send + Sync + 'static,
T7: ForwardHeader + Send + Sync + 'static,
S: Service<State, Request<Body>>,
<S as Service<State, Request<Body>>>::Error: Into<Box<dyn Error + Send + Sync>>,
Body: Send + 'static,
State: Clone + Send + Sync + 'static,
§type Response = <S as Service<State, Request<Body>>>::Response
type Response = <S as Service<State, Request<Body>>>::Response
§async fn serve(
&self,
ctx: Context<State>,
req: Request<Body>,
) -> Result<<SetForwardedHeadersService<S, (T1, T2, T3, T4, T5, T6, T7)> as Service<State, Request<Body>>>::Response, <SetForwardedHeadersService<S, (T1, T2, T3, T4, T5, T6, T7)> as Service<State, Request<Body>>>::Error>
async fn serve( &self, ctx: Context<State>, req: Request<Body>, ) -> Result<<SetForwardedHeadersService<S, (T1, T2, T3, T4, T5, T6, T7)> as Service<State, Request<Body>>>::Response, <SetForwardedHeadersService<S, (T1, T2, T3, T4, T5, T6, T7)> as Service<State, Request<Body>>>::Error>
§fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
§impl<S, T1, T2, T3, T4, T5, T6, T7, T8, State, Body> Service<State, Request<Body>> for SetForwardedHeadersService<S, (T1, T2, T3, T4, T5, T6, T7, T8)>where
T1: ForwardHeader + Send + Sync + 'static,
T2: ForwardHeader + Send + Sync + 'static,
T3: ForwardHeader + Send + Sync + 'static,
T4: ForwardHeader + Send + Sync + 'static,
T5: ForwardHeader + Send + Sync + 'static,
T6: ForwardHeader + Send + Sync + 'static,
T7: ForwardHeader + Send + Sync + 'static,
T8: ForwardHeader + Send + Sync + 'static,
S: Service<State, Request<Body>>,
<S as Service<State, Request<Body>>>::Error: Into<Box<dyn Error + Send + Sync>>,
Body: Send + 'static,
State: Clone + Send + Sync + 'static,
impl<S, T1, T2, T3, T4, T5, T6, T7, T8, State, Body> Service<State, Request<Body>> for SetForwardedHeadersService<S, (T1, T2, T3, T4, T5, T6, T7, T8)>where
T1: ForwardHeader + Send + Sync + 'static,
T2: ForwardHeader + Send + Sync + 'static,
T3: ForwardHeader + Send + Sync + 'static,
T4: ForwardHeader + Send + Sync + 'static,
T5: ForwardHeader + Send + Sync + 'static,
T6: ForwardHeader + Send + Sync + 'static,
T7: ForwardHeader + Send + Sync + 'static,
T8: ForwardHeader + Send + Sync + 'static,
S: Service<State, Request<Body>>,
<S as Service<State, Request<Body>>>::Error: Into<Box<dyn Error + Send + Sync>>,
Body: Send + 'static,
State: Clone + Send + Sync + 'static,
§type Response = <S as Service<State, Request<Body>>>::Response
type Response = <S as Service<State, Request<Body>>>::Response
§async fn serve(
&self,
ctx: Context<State>,
req: Request<Body>,
) -> Result<<SetForwardedHeadersService<S, (T1, T2, T3, T4, T5, T6, T7, T8)> as Service<State, Request<Body>>>::Response, <SetForwardedHeadersService<S, (T1, T2, T3, T4, T5, T6, T7, T8)> as Service<State, Request<Body>>>::Error>
async fn serve( &self, ctx: Context<State>, req: Request<Body>, ) -> Result<<SetForwardedHeadersService<S, (T1, T2, T3, T4, T5, T6, T7, T8)> as Service<State, Request<Body>>>::Response, <SetForwardedHeadersService<S, (T1, T2, T3, T4, T5, T6, T7, T8)> as Service<State, Request<Body>>>::Error>
§fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
§impl<S, T1, T2, T3, T4, T5, T6, T7, T8, T9, State, Body> Service<State, Request<Body>> for SetForwardedHeadersService<S, (T1, T2, T3, T4, T5, T6, T7, T8, T9)>where
T1: ForwardHeader + Send + Sync + 'static,
T2: ForwardHeader + Send + Sync + 'static,
T3: ForwardHeader + Send + Sync + 'static,
T4: ForwardHeader + Send + Sync + 'static,
T5: ForwardHeader + Send + Sync + 'static,
T6: ForwardHeader + Send + Sync + 'static,
T7: ForwardHeader + Send + Sync + 'static,
T8: ForwardHeader + Send + Sync + 'static,
T9: ForwardHeader + Send + Sync + 'static,
S: Service<State, Request<Body>>,
<S as Service<State, Request<Body>>>::Error: Into<Box<dyn Error + Send + Sync>>,
Body: Send + 'static,
State: Clone + Send + Sync + 'static,
impl<S, T1, T2, T3, T4, T5, T6, T7, T8, T9, State, Body> Service<State, Request<Body>> for SetForwardedHeadersService<S, (T1, T2, T3, T4, T5, T6, T7, T8, T9)>where
T1: ForwardHeader + Send + Sync + 'static,
T2: ForwardHeader + Send + Sync + 'static,
T3: ForwardHeader + Send + Sync + 'static,
T4: ForwardHeader + Send + Sync + 'static,
T5: ForwardHeader + Send + Sync + 'static,
T6: ForwardHeader + Send + Sync + 'static,
T7: ForwardHeader + Send + Sync + 'static,
T8: ForwardHeader + Send + Sync + 'static,
T9: ForwardHeader + Send + Sync + 'static,
S: Service<State, Request<Body>>,
<S as Service<State, Request<Body>>>::Error: Into<Box<dyn Error + Send + Sync>>,
Body: Send + 'static,
State: Clone + Send + Sync + 'static,
§type Response = <S as Service<State, Request<Body>>>::Response
type Response = <S as Service<State, Request<Body>>>::Response
§async fn serve(
&self,
ctx: Context<State>,
req: Request<Body>,
) -> Result<<SetForwardedHeadersService<S, (T1, T2, T3, T4, T5, T6, T7, T8, T9)> as Service<State, Request<Body>>>::Response, <SetForwardedHeadersService<S, (T1, T2, T3, T4, T5, T6, T7, T8, T9)> as Service<State, Request<Body>>>::Error>
async fn serve( &self, ctx: Context<State>, req: Request<Body>, ) -> Result<<SetForwardedHeadersService<S, (T1, T2, T3, T4, T5, T6, T7, T8, T9)> as Service<State, Request<Body>>>::Response, <SetForwardedHeadersService<S, (T1, T2, T3, T4, T5, T6, T7, T8, T9)> as Service<State, Request<Body>>>::Error>
§fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
§impl<S, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, State, Body> Service<State, Request<Body>> for SetForwardedHeadersService<S, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)>where
T1: ForwardHeader + Send + Sync + 'static,
T2: ForwardHeader + Send + Sync + 'static,
T3: ForwardHeader + Send + Sync + 'static,
T4: ForwardHeader + Send + Sync + 'static,
T5: ForwardHeader + Send + Sync + 'static,
T6: ForwardHeader + Send + Sync + 'static,
T7: ForwardHeader + Send + Sync + 'static,
T8: ForwardHeader + Send + Sync + 'static,
T9: ForwardHeader + Send + Sync + 'static,
T10: ForwardHeader + Send + Sync + 'static,
S: Service<State, Request<Body>>,
<S as Service<State, Request<Body>>>::Error: Into<Box<dyn Error + Send + Sync>>,
Body: Send + 'static,
State: Clone + Send + Sync + 'static,
impl<S, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, State, Body> Service<State, Request<Body>> for SetForwardedHeadersService<S, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)>where
T1: ForwardHeader + Send + Sync + 'static,
T2: ForwardHeader + Send + Sync + 'static,
T3: ForwardHeader + Send + Sync + 'static,
T4: ForwardHeader + Send + Sync + 'static,
T5: ForwardHeader + Send + Sync + 'static,
T6: ForwardHeader + Send + Sync + 'static,
T7: ForwardHeader + Send + Sync + 'static,
T8: ForwardHeader + Send + Sync + 'static,
T9: ForwardHeader + Send + Sync + 'static,
T10: ForwardHeader + Send + Sync + 'static,
S: Service<State, Request<Body>>,
<S as Service<State, Request<Body>>>::Error: Into<Box<dyn Error + Send + Sync>>,
Body: Send + 'static,
State: Clone + Send + Sync + 'static,
§type Response = <S as Service<State, Request<Body>>>::Response
type Response = <S as Service<State, Request<Body>>>::Response
§async fn serve(
&self,
ctx: Context<State>,
req: Request<Body>,
) -> Result<<SetForwardedHeadersService<S, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)> as Service<State, Request<Body>>>::Response, <SetForwardedHeadersService<S, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)> as Service<State, Request<Body>>>::Error>
async fn serve( &self, ctx: Context<State>, req: Request<Body>, ) -> Result<<SetForwardedHeadersService<S, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)> as Service<State, Request<Body>>>::Response, <SetForwardedHeadersService<S, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)> as Service<State, Request<Body>>>::Error>
§fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
§impl<S, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, State, Body> Service<State, Request<Body>> for SetForwardedHeadersService<S, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)>where
T1: ForwardHeader + Send + Sync + 'static,
T2: ForwardHeader + Send + Sync + 'static,
T3: ForwardHeader + Send + Sync + 'static,
T4: ForwardHeader + Send + Sync + 'static,
T5: ForwardHeader + Send + Sync + 'static,
T6: ForwardHeader + Send + Sync + 'static,
T7: ForwardHeader + Send + Sync + 'static,
T8: ForwardHeader + Send + Sync + 'static,
T9: ForwardHeader + Send + Sync + 'static,
T10: ForwardHeader + Send + Sync + 'static,
T11: ForwardHeader + Send + Sync + 'static,
S: Service<State, Request<Body>>,
<S as Service<State, Request<Body>>>::Error: Into<Box<dyn Error + Send + Sync>>,
Body: Send + 'static,
State: Clone + Send + Sync + 'static,
impl<S, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, State, Body> Service<State, Request<Body>> for SetForwardedHeadersService<S, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)>where
T1: ForwardHeader + Send + Sync + 'static,
T2: ForwardHeader + Send + Sync + 'static,
T3: ForwardHeader + Send + Sync + 'static,
T4: ForwardHeader + Send + Sync + 'static,
T5: ForwardHeader + Send + Sync + 'static,
T6: ForwardHeader + Send + Sync + 'static,
T7: ForwardHeader + Send + Sync + 'static,
T8: ForwardHeader + Send + Sync + 'static,
T9: ForwardHeader + Send + Sync + 'static,
T10: ForwardHeader + Send + Sync + 'static,
T11: ForwardHeader + Send + Sync + 'static,
S: Service<State, Request<Body>>,
<S as Service<State, Request<Body>>>::Error: Into<Box<dyn Error + Send + Sync>>,
Body: Send + 'static,
State: Clone + Send + Sync + 'static,
§type Response = <S as Service<State, Request<Body>>>::Response
type Response = <S as Service<State, Request<Body>>>::Response
§async fn serve(
&self,
ctx: Context<State>,
req: Request<Body>,
) -> Result<<SetForwardedHeadersService<S, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)> as Service<State, Request<Body>>>::Response, <SetForwardedHeadersService<S, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)> as Service<State, Request<Body>>>::Error>
async fn serve( &self, ctx: Context<State>, req: Request<Body>, ) -> Result<<SetForwardedHeadersService<S, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)> as Service<State, Request<Body>>>::Response, <SetForwardedHeadersService<S, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)> as Service<State, Request<Body>>>::Error>
§fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
§impl<S, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, State, Body> Service<State, Request<Body>> for SetForwardedHeadersService<S, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)>where
T1: ForwardHeader + Send + Sync + 'static,
T2: ForwardHeader + Send + Sync + 'static,
T3: ForwardHeader + Send + Sync + 'static,
T4: ForwardHeader + Send + Sync + 'static,
T5: ForwardHeader + Send + Sync + 'static,
T6: ForwardHeader + Send + Sync + 'static,
T7: ForwardHeader + Send + Sync + 'static,
T8: ForwardHeader + Send + Sync + 'static,
T9: ForwardHeader + Send + Sync + 'static,
T10: ForwardHeader + Send + Sync + 'static,
T11: ForwardHeader + Send + Sync + 'static,
T12: ForwardHeader + Send + Sync + 'static,
S: Service<State, Request<Body>>,
<S as Service<State, Request<Body>>>::Error: Into<Box<dyn Error + Send + Sync>>,
Body: Send + 'static,
State: Clone + Send + Sync + 'static,
impl<S, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, State, Body> Service<State, Request<Body>> for SetForwardedHeadersService<S, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)>where
T1: ForwardHeader + Send + Sync + 'static,
T2: ForwardHeader + Send + Sync + 'static,
T3: ForwardHeader + Send + Sync + 'static,
T4: ForwardHeader + Send + Sync + 'static,
T5: ForwardHeader + Send + Sync + 'static,
T6: ForwardHeader + Send + Sync + 'static,
T7: ForwardHeader + Send + Sync + 'static,
T8: ForwardHeader + Send + Sync + 'static,
T9: ForwardHeader + Send + Sync + 'static,
T10: ForwardHeader + Send + Sync + 'static,
T11: ForwardHeader + Send + Sync + 'static,
T12: ForwardHeader + Send + Sync + 'static,
S: Service<State, Request<Body>>,
<S as Service<State, Request<Body>>>::Error: Into<Box<dyn Error + Send + Sync>>,
Body: Send + 'static,
State: Clone + Send + Sync + 'static,
§type Response = <S as Service<State, Request<Body>>>::Response
type Response = <S as Service<State, Request<Body>>>::Response
§async fn serve(
&self,
ctx: Context<State>,
req: Request<Body>,
) -> Result<<SetForwardedHeadersService<S, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)> as Service<State, Request<Body>>>::Response, <SetForwardedHeadersService<S, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)> as Service<State, Request<Body>>>::Error>
async fn serve( &self, ctx: Context<State>, req: Request<Body>, ) -> Result<<SetForwardedHeadersService<S, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)> as Service<State, Request<Body>>>::Response, <SetForwardedHeadersService<S, (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)> as Service<State, Request<Body>>>::Error>
§fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
§impl<S, H, State, Body> Service<State, Request<Body>> for SetForwardedHeadersService<S, H>
impl<S, H, State, Body> Service<State, Request<Body>> for SetForwardedHeadersService<S, H>
§type Response = <S as Service<State, Request<Body>>>::Response
type Response = <S as Service<State, Request<Body>>>::Response
§async fn serve(
&self,
ctx: Context<State>,
req: Request<Body>,
) -> Result<<SetForwardedHeadersService<S, H> as Service<State, Request<Body>>>::Response, <SetForwardedHeadersService<S, H> as Service<State, Request<Body>>>::Error>
async fn serve( &self, ctx: Context<State>, req: Request<Body>, ) -> Result<<SetForwardedHeadersService<S, H> as Service<State, Request<Body>>>::Response, <SetForwardedHeadersService<S, H> as Service<State, Request<Body>>>::Error>
§fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
§impl<S, State, Body> Service<State, Request<Body>> for SetProxyAuthHttpHeaderService<S>
impl<S, State, Body> Service<State, Request<Body>> for SetProxyAuthHttpHeaderService<S>
§type Response = <S as Service<State, Request<Body>>>::Response
type Response = <S as Service<State, Request<Body>>>::Response
§fn serve(
&self,
ctx: Context<State>,
req: Request<Body>,
) -> impl Future<Output = Result<<SetProxyAuthHttpHeaderService<S> as Service<State, Request<Body>>>::Response, <SetProxyAuthHttpHeaderService<S> as Service<State, Request<Body>>>::Error>> + Send
fn serve( &self, ctx: Context<State>, req: Request<Body>, ) -> impl Future<Output = Result<<SetProxyAuthHttpHeaderService<S> as Service<State, Request<Body>>>::Response, <SetProxyAuthHttpHeaderService<S> as Service<State, Request<Body>>>::Error>> + Send
§fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
§impl<S, State, O, E> Service<State, Request<Body>> for UpgradeService<S, State, O>
impl<S, State, O, E> Service<State, Request<Body>> for UpgradeService<S, State, O>
§async fn serve(
&self,
ctx: Context<State>,
req: Request<Body>,
) -> Result<<UpgradeService<S, State, O> as Service<State, Request<Body>>>::Response, <UpgradeService<S, State, O> as Service<State, Request<Body>>>::Error>
async fn serve( &self, ctx: Context<State>, req: Request<Body>, ) -> Result<<UpgradeService<S, State, O> as Service<State, Request<Body>>>::Response, <UpgradeService<S, State, O> as Service<State, Request<Body>>>::Error>
§fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
§impl<S, State, Body> Service<State, Request<Body>> for UserAgentClassifier<S>
impl<S, State, Body> Service<State, Request<Body>> for UserAgentClassifier<S>
§type Response = <S as Service<State, Request<Body>>>::Response
type Response = <S as Service<State, Request<Body>>>::Response
§fn serve(
&self,
ctx: Context<State>,
req: Request<Body>,
) -> impl Future<Output = Result<<UserAgentClassifier<S> as Service<State, Request<Body>>>::Response, <UserAgentClassifier<S> as Service<State, Request<Body>>>::Error>> + Send
fn serve( &self, ctx: Context<State>, req: Request<Body>, ) -> impl Future<Output = Result<<UserAgentClassifier<S> as Service<State, Request<Body>>>::Response, <UserAgentClassifier<S> as Service<State, Request<Body>>>::Error>> + Send
§fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
§impl<State> Service<State, Request<Body>> for WebService<State>
impl<State> Service<State, Request<Body>> for WebService<State>
§type Error = Infallible
type Error = Infallible
§async fn serve(
&self,
ctx: Context<State>,
req: Request<Body>,
) -> Result<<WebService<State> as Service<State, Request<Body>>>::Response, <WebService<State> as Service<State, Request<Body>>>::Error>
async fn serve( &self, ctx: Context<State>, req: Request<Body>, ) -> Result<<WebService<State> as Service<State, Request<Body>>>::Response, <WebService<State> as Service<State, Request<Body>>>::Error>
§fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
§impl<S, State, ReqBody, ResBody> Service<State, Request<ReqBody>> for AddAuthorization<S>
impl<S, State, ReqBody, ResBody> Service<State, Request<ReqBody>> for AddAuthorization<S>
§type Response = <S as Service<State, Request<ReqBody>>>::Response
type Response = <S as Service<State, Request<ReqBody>>>::Response
§type Error = <S as Service<State, Request<ReqBody>>>::Error
type Error = <S as Service<State, Request<ReqBody>>>::Error
§async fn serve(
&self,
ctx: Context<State>,
req: Request<ReqBody>,
) -> Result<<AddAuthorization<S> as Service<State, Request<ReqBody>>>::Response, <AddAuthorization<S> as Service<State, Request<ReqBody>>>::Error>
async fn serve( &self, ctx: Context<State>, req: Request<ReqBody>, ) -> Result<<AddAuthorization<S> as Service<State, Request<ReqBody>>>::Response, <AddAuthorization<S> as Service<State, Request<ReqBody>>>::Error>
§fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
§impl<ReqBody, ResBody, State, S> Service<State, Request<ReqBody>> for AddRequiredRequestHeaders<S>
impl<ReqBody, ResBody, State, S> Service<State, Request<ReqBody>> for AddRequiredRequestHeaders<S>
§type Response = <S as Service<State, Request<ReqBody>>>::Response
type Response = <S as Service<State, Request<ReqBody>>>::Response
§async fn serve(
&self,
ctx: Context<State>,
req: Request<ReqBody>,
) -> Result<<AddRequiredRequestHeaders<S> as Service<State, Request<ReqBody>>>::Response, <AddRequiredRequestHeaders<S> as Service<State, Request<ReqBody>>>::Error>
async fn serve( &self, ctx: Context<State>, req: Request<ReqBody>, ) -> Result<<AddRequiredRequestHeaders<S> as Service<State, Request<ReqBody>>>::Response, <AddRequiredRequestHeaders<S> as Service<State, Request<ReqBody>>>::Error>
§fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
§impl<ReqBody, ResBody, State, S> Service<State, Request<ReqBody>> for AddRequiredResponseHeaders<S>
impl<ReqBody, ResBody, State, S> Service<State, Request<ReqBody>> for AddRequiredResponseHeaders<S>
§type Response = <S as Service<State, Request<ReqBody>>>::Response
type Response = <S as Service<State, Request<ReqBody>>>::Response
§type Error = <S as Service<State, Request<ReqBody>>>::Error
type Error = <S as Service<State, Request<ReqBody>>>::Error
§async fn serve(
&self,
ctx: Context<State>,
req: Request<ReqBody>,
) -> Result<<AddRequiredResponseHeaders<S> as Service<State, Request<ReqBody>>>::Response, <AddRequiredResponseHeaders<S> as Service<State, Request<ReqBody>>>::Error>
async fn serve( &self, ctx: Context<State>, req: Request<ReqBody>, ) -> Result<<AddRequiredResponseHeaders<S> as Service<State, Request<ReqBody>>>::Response, <AddRequiredResponseHeaders<S> as Service<State, Request<ReqBody>>>::Error>
§fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
§impl<ReqBody, ResBody, S, State, Auth> Service<State, Request<ReqBody>> for AsyncRequireAuthorization<S, Auth>where
Auth: AsyncAuthorizeRequest<State, ReqBody, ResponseBody = ResBody> + Send + Sync + 'static,
S: Service<State, Request<<Auth as AsyncAuthorizeRequest<State, ReqBody>>::RequestBody>, Response = Response<ResBody>>,
ReqBody: Send + 'static,
ResBody: Send + 'static,
State: Clone + Send + Sync + 'static,
impl<ReqBody, ResBody, S, State, Auth> Service<State, Request<ReqBody>> for AsyncRequireAuthorization<S, Auth>where
Auth: AsyncAuthorizeRequest<State, ReqBody, ResponseBody = ResBody> + Send + Sync + 'static,
S: Service<State, Request<<Auth as AsyncAuthorizeRequest<State, ReqBody>>::RequestBody>, Response = Response<ResBody>>,
ReqBody: Send + 'static,
ResBody: Send + 'static,
State: Clone + Send + Sync + 'static,
§type Error = <S as Service<State, Request<<Auth as AsyncAuthorizeRequest<State, ReqBody>>::RequestBody>>>::Error
type Error = <S as Service<State, Request<<Auth as AsyncAuthorizeRequest<State, ReqBody>>::RequestBody>>>::Error
§async fn serve(
&self,
ctx: Context<State>,
req: Request<ReqBody>,
) -> Result<<AsyncRequireAuthorization<S, Auth> as Service<State, Request<ReqBody>>>::Response, <AsyncRequireAuthorization<S, Auth> as Service<State, Request<ReqBody>>>::Error>
async fn serve( &self, ctx: Context<State>, req: Request<ReqBody>, ) -> Result<<AsyncRequireAuthorization<S, Auth> as Service<State, Request<ReqBody>>>::Response, <AsyncRequireAuthorization<S, Auth> as Service<State, Request<ReqBody>>>::Error>
§fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
§impl<S, State, ReqBody> Service<State, Request<ReqBody>> for BodyLimitService<S>
impl<S, State, ReqBody> Service<State, Request<ReqBody>> for BodyLimitService<S>
§type Response = <S as Service<State, Request<Limited<ReqBody>>>>::Response
type Response = <S as Service<State, Request<Limited<ReqBody>>>>::Response
§type Error = <S as Service<State, Request<Limited<ReqBody>>>>::Error
type Error = <S as Service<State, Request<Limited<ReqBody>>>>::Error
§async fn serve(
&self,
ctx: Context<State>,
req: Request<ReqBody>,
) -> Result<<BodyLimitService<S> as Service<State, Request<ReqBody>>>::Response, <BodyLimitService<S> as Service<State, Request<ReqBody>>>::Error>
async fn serve( &self, ctx: Context<State>, req: Request<ReqBody>, ) -> Result<<BodyLimitService<S> as Service<State, Request<ReqBody>>>::Response, <BodyLimitService<S> as Service<State, Request<ReqBody>>>::Error>
§fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
§impl<State, S, T, ReqBody, ResBody> Service<State, Request<ReqBody>> for CatchPanic<S, T>
impl<State, S, T, ReqBody, ResBody> Service<State, Request<ReqBody>> for CatchPanic<S, T>
§type Error = <S as Service<State, Request<ReqBody>>>::Error
type Error = <S as Service<State, Request<ReqBody>>>::Error
§async fn serve(
&self,
ctx: Context<State>,
req: Request<ReqBody>,
) -> Result<<CatchPanic<S, T> as Service<State, Request<ReqBody>>>::Response, <CatchPanic<S, T> as Service<State, Request<ReqBody>>>::Error>
async fn serve( &self, ctx: Context<State>, req: Request<ReqBody>, ) -> Result<<CatchPanic<S, T> as Service<State, Request<ReqBody>>>::Response, <CatchPanic<S, T> as Service<State, Request<ReqBody>>>::Error>
§fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
§impl<S, State, ReqBody, ResBody> Service<State, Request<ReqBody>> for CollectBody<S>where
S: Service<State, Request<ReqBody>, Response = Response<ResBody>>,
<S as Service<State, Request<ReqBody>>>::Error: Into<Box<dyn Error + Send + Sync>>,
State: Clone + Send + Sync + 'static,
ReqBody: Send + 'static,
ResBody: Body + Send + Sync + 'static,
<ResBody as Body>::Data: Send,
<ResBody as Body>::Error: Error + Send + Sync + 'static,
impl<S, State, ReqBody, ResBody> Service<State, Request<ReqBody>> for CollectBody<S>where
S: Service<State, Request<ReqBody>, Response = Response<ResBody>>,
<S as Service<State, Request<ReqBody>>>::Error: Into<Box<dyn Error + Send + Sync>>,
State: Clone + Send + Sync + 'static,
ReqBody: Send + 'static,
ResBody: Body + Send + Sync + 'static,
<ResBody as Body>::Data: Send,
<ResBody as Body>::Error: Error + Send + Sync + 'static,
§async fn serve(
&self,
ctx: Context<State>,
req: Request<ReqBody>,
) -> Result<<CollectBody<S> as Service<State, Request<ReqBody>>>::Response, <CollectBody<S> as Service<State, Request<ReqBody>>>::Error>
async fn serve( &self, ctx: Context<State>, req: Request<ReqBody>, ) -> Result<<CollectBody<S> as Service<State, Request<ReqBody>>>::Response, <CollectBody<S> as Service<State, Request<ReqBody>>>::Error>
§fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
§impl<ReqBody, ResBody, S, P, State> Service<State, Request<ReqBody>> for Compression<S, P>
impl<ReqBody, ResBody, S, P, State> Service<State, Request<ReqBody>> for Compression<S, P>
§type Response = Response<CompressionBody<ResBody>>
type Response = Response<CompressionBody<ResBody>>
§type Error = <S as Service<State, Request<ReqBody>>>::Error
type Error = <S as Service<State, Request<ReqBody>>>::Error
§async fn serve(
&self,
ctx: Context<State>,
req: Request<ReqBody>,
) -> Result<<Compression<S, P> as Service<State, Request<ReqBody>>>::Response, <Compression<S, P> as Service<State, Request<ReqBody>>>::Error>
async fn serve( &self, ctx: Context<State>, req: Request<ReqBody>, ) -> Result<<Compression<S, P> as Service<State, Request<ReqBody>>>::Response, <Compression<S, P> as Service<State, Request<ReqBody>>>::Error>
§fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
§impl<S, State, ReqBody, ResBody> Service<State, Request<ReqBody>> for Cors<S>
impl<S, State, ReqBody, ResBody> Service<State, Request<ReqBody>> for Cors<S>
§type Response = <S as Service<State, Request<ReqBody>>>::Response
type Response = <S as Service<State, Request<ReqBody>>>::Response
§type Error = <S as Service<State, Request<ReqBody>>>::Error
type Error = <S as Service<State, Request<ReqBody>>>::Error
§async fn serve(
&self,
ctx: Context<State>,
req: Request<ReqBody>,
) -> Result<<Cors<S> as Service<State, Request<ReqBody>>>::Response, <Cors<S> as Service<State, Request<ReqBody>>>::Error>
async fn serve( &self, ctx: Context<State>, req: Request<ReqBody>, ) -> Result<<Cors<S> as Service<State, Request<ReqBody>>>::Response, <Cors<S> as Service<State, Request<ReqBody>>>::Error>
§fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
§impl<S, State, ReqBody, ResBody> Service<State, Request<ReqBody>> for Decompression<S>
impl<S, State, ReqBody, ResBody> Service<State, Request<ReqBody>> for Decompression<S>
§type Response = Response<DecompressionBody<ResBody>>
type Response = Response<DecompressionBody<ResBody>>
§type Error = <S as Service<State, Request<ReqBody>>>::Error
type Error = <S as Service<State, Request<ReqBody>>>::Error
§async fn serve(
&self,
ctx: Context<State>,
req: Request<ReqBody>,
) -> Result<<Decompression<S> as Service<State, Request<ReqBody>>>::Response, <Decompression<S> as Service<State, Request<ReqBody>>>::Error>
async fn serve( &self, ctx: Context<State>, req: Request<ReqBody>, ) -> Result<<Decompression<S> as Service<State, Request<ReqBody>>>::Response, <Decompression<S> as Service<State, Request<ReqBody>>>::Error>
§fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
§impl<State, ReqBody> Service<State, Request<ReqBody>> for DefaultServeDirFallback
impl<State, ReqBody> Service<State, Request<ReqBody>> for DefaultServeDirFallback
§type Error = Infallible
type Error = Infallible
§async fn serve(
&self,
_ctx: Context<State>,
_req: Request<ReqBody>,
) -> Result<<DefaultServeDirFallback as Service<State, Request<ReqBody>>>::Response, <DefaultServeDirFallback as Service<State, Request<ReqBody>>>::Error>
async fn serve( &self, _ctx: Context<State>, _req: Request<ReqBody>, ) -> Result<<DefaultServeDirFallback as Service<State, Request<ReqBody>>>::Response, <DefaultServeDirFallback as Service<State, Request<ReqBody>>>::Error>
§fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
§impl<State, ReqBody, ResBody, S, P> Service<State, Request<ReqBody>> for FollowRedirect<S, P>
impl<State, ReqBody, ResBody, S, P> Service<State, Request<ReqBody>> for FollowRedirect<S, P>
§type Error = <S as Service<State, Request<ReqBody>>>::Error
type Error = <S as Service<State, Request<ReqBody>>>::Error
§fn serve(
&self,
ctx: Context<State>,
req: Request<ReqBody>,
) -> impl Future<Output = Result<<FollowRedirect<S, P> as Service<State, Request<ReqBody>>>::Response, <FollowRedirect<S, P> as Service<State, Request<ReqBody>>>::Error>>
fn serve( &self, ctx: Context<State>, req: Request<ReqBody>, ) -> impl Future<Output = Result<<FollowRedirect<S, P> as Service<State, Request<ReqBody>>>::Response, <FollowRedirect<S, P> as Service<State, Request<ReqBody>>>::Error>>
§fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
§impl<F, S, State, ReqBody, ResBody, NewReqBody> Service<State, Request<ReqBody>> for MapRequestBody<S, F>
impl<F, S, State, ReqBody, ResBody, NewReqBody> Service<State, Request<ReqBody>> for MapRequestBody<S, F>
§type Response = <S as Service<State, Request<NewReqBody>>>::Response
type Response = <S as Service<State, Request<NewReqBody>>>::Response
§type Error = <S as Service<State, Request<NewReqBody>>>::Error
type Error = <S as Service<State, Request<NewReqBody>>>::Error
§async fn serve(
&self,
ctx: Context<State>,
req: Request<ReqBody>,
) -> Result<<MapRequestBody<S, F> as Service<State, Request<ReqBody>>>::Response, <MapRequestBody<S, F> as Service<State, Request<ReqBody>>>::Error>
async fn serve( &self, ctx: Context<State>, req: Request<ReqBody>, ) -> Result<<MapRequestBody<S, F> as Service<State, Request<ReqBody>>>::Response, <MapRequestBody<S, F> as Service<State, Request<ReqBody>>>::Error>
§fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
§impl<F, S, State, ReqBody, ResBody, NewResBody> Service<State, Request<ReqBody>> for MapResponseBody<S, F>
impl<F, S, State, ReqBody, ResBody, NewResBody> Service<State, Request<ReqBody>> for MapResponseBody<S, F>
§type Error = <S as Service<State, Request<ReqBody>>>::Error
type Error = <S as Service<State, Request<ReqBody>>>::Error
§async fn serve(
&self,
ctx: Context<State>,
req: Request<ReqBody>,
) -> Result<<MapResponseBody<S, F> as Service<State, Request<ReqBody>>>::Response, <MapResponseBody<S, F> as Service<State, Request<ReqBody>>>::Error>
async fn serve( &self, ctx: Context<State>, req: Request<ReqBody>, ) -> Result<<MapResponseBody<S, F> as Service<State, Request<ReqBody>>>::Response, <MapResponseBody<S, F> as Service<State, Request<ReqBody>>>::Error>
§fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
§impl<S, State, ReqBody, ResBody> Service<State, Request<ReqBody>> for NormalizePath<S>
impl<S, State, ReqBody, ResBody> Service<State, Request<ReqBody>> for NormalizePath<S>
§type Response = <S as Service<State, Request<ReqBody>>>::Response
type Response = <S as Service<State, Request<ReqBody>>>::Response
§type Error = <S as Service<State, Request<ReqBody>>>::Error
type Error = <S as Service<State, Request<ReqBody>>>::Error
§fn serve(
&self,
ctx: Context<State>,
req: Request<ReqBody>,
) -> impl Future<Output = Result<<NormalizePath<S> as Service<State, Request<ReqBody>>>::Response, <NormalizePath<S> as Service<State, Request<ReqBody>>>::Error>> + Send
fn serve( &self, ctx: Context<State>, req: Request<ReqBody>, ) -> impl Future<Output = Result<<NormalizePath<S> as Service<State, Request<ReqBody>>>::Response, <NormalizePath<S> as Service<State, Request<ReqBody>>>::Error>> + Send
§fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
§impl<ReqBody, ResBody, S, State> Service<State, Request<ReqBody>> for PropagateHeader<S>
impl<ReqBody, ResBody, S, State> Service<State, Request<ReqBody>> for PropagateHeader<S>
§type Response = <S as Service<State, Request<ReqBody>>>::Response
type Response = <S as Service<State, Request<ReqBody>>>::Response
§type Error = <S as Service<State, Request<ReqBody>>>::Error
type Error = <S as Service<State, Request<ReqBody>>>::Error
§async fn serve(
&self,
ctx: Context<State>,
req: Request<ReqBody>,
) -> Result<<PropagateHeader<S> as Service<State, Request<ReqBody>>>::Response, <PropagateHeader<S> as Service<State, Request<ReqBody>>>::Error>
async fn serve( &self, ctx: Context<State>, req: Request<ReqBody>, ) -> Result<<PropagateHeader<S> as Service<State, Request<ReqBody>>>::Response, <PropagateHeader<S> as Service<State, Request<ReqBody>>>::Error>
§fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
§impl<State, S, ReqBody, ResBody> Service<State, Request<ReqBody>> for PropagateRequestId<S>
impl<State, S, ReqBody, ResBody> Service<State, Request<ReqBody>> for PropagateRequestId<S>
§type Response = <S as Service<State, Request<ReqBody>>>::Response
type Response = <S as Service<State, Request<ReqBody>>>::Response
§type Error = <S as Service<State, Request<ReqBody>>>::Error
type Error = <S as Service<State, Request<ReqBody>>>::Error
§async fn serve(
&self,
ctx: Context<State>,
req: Request<ReqBody>,
) -> Result<<PropagateRequestId<S> as Service<State, Request<ReqBody>>>::Response, <PropagateRequestId<S> as Service<State, Request<ReqBody>>>::Error>
async fn serve( &self, ctx: Context<State>, req: Request<ReqBody>, ) -> Result<<PropagateRequestId<S> as Service<State, Request<ReqBody>>>::Response, <PropagateRequestId<S> as Service<State, Request<ReqBody>>>::Error>
§fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
§impl<A, C, L, S, State, ReqBody, ResBody> Service<State, Request<ReqBody>> for ProxyAuthService<A, C, S, L>
impl<A, C, L, S, State, ReqBody, ResBody> Service<State, Request<ReqBody>> for ProxyAuthService<A, C, S, L>
§type Response = <S as Service<State, Request<ReqBody>>>::Response
type Response = <S as Service<State, Request<ReqBody>>>::Response
§type Error = <S as Service<State, Request<ReqBody>>>::Error
type Error = <S as Service<State, Request<ReqBody>>>::Error
§async fn serve(
&self,
ctx: Context<State>,
req: Request<ReqBody>,
) -> Result<<ProxyAuthService<A, C, S, L> as Service<State, Request<ReqBody>>>::Response, <ProxyAuthService<A, C, S, L> as Service<State, Request<ReqBody>>>::Error>
async fn serve( &self, ctx: Context<State>, req: Request<ReqBody>, ) -> Result<<ProxyAuthService<A, C, S, L> as Service<State, Request<ReqBody>>>::Response, <ProxyAuthService<A, C, S, L> as Service<State, Request<ReqBody>>>::Error>
§fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
§impl<ReqBody, ResBody, State, S> Service<State, Request<ReqBody>> for RemoveRequestHeader<S>
impl<ReqBody, ResBody, State, S> Service<State, Request<ReqBody>> for RemoveRequestHeader<S>
§type Response = <S as Service<State, Request<ReqBody>>>::Response
type Response = <S as Service<State, Request<ReqBody>>>::Response
§type Error = <S as Service<State, Request<ReqBody>>>::Error
type Error = <S as Service<State, Request<ReqBody>>>::Error
§fn serve(
&self,
ctx: Context<State>,
req: Request<ReqBody>,
) -> impl Future<Output = Result<<RemoveRequestHeader<S> as Service<State, Request<ReqBody>>>::Response, <RemoveRequestHeader<S> as Service<State, Request<ReqBody>>>::Error>> + Send
fn serve( &self, ctx: Context<State>, req: Request<ReqBody>, ) -> impl Future<Output = Result<<RemoveRequestHeader<S> as Service<State, Request<ReqBody>>>::Response, <RemoveRequestHeader<S> as Service<State, Request<ReqBody>>>::Error>> + Send
§fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
§impl<ReqBody, ResBody, State, S> Service<State, Request<ReqBody>> for RemoveResponseHeader<S>
impl<ReqBody, ResBody, State, S> Service<State, Request<ReqBody>> for RemoveResponseHeader<S>
§type Response = <S as Service<State, Request<ReqBody>>>::Response
type Response = <S as Service<State, Request<ReqBody>>>::Response
§type Error = <S as Service<State, Request<ReqBody>>>::Error
type Error = <S as Service<State, Request<ReqBody>>>::Error
§async fn serve(
&self,
ctx: Context<State>,
req: Request<ReqBody>,
) -> Result<<RemoveResponseHeader<S> as Service<State, Request<ReqBody>>>::Response, <RemoveResponseHeader<S> as Service<State, Request<ReqBody>>>::Error>
async fn serve( &self, ctx: Context<State>, req: Request<ReqBody>, ) -> Result<<RemoveResponseHeader<S> as Service<State, Request<ReqBody>>>::Response, <RemoveResponseHeader<S> as Service<State, Request<ReqBody>>>::Error>
§fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
§impl<S, State, ReqBody, ResBody, D> Service<State, Request<ReqBody>> for RequestDecompression<S>where
S: Service<State, Request<DecompressionBody<ReqBody>>, Response = Response<ResBody>>,
<S as Service<State, Request<DecompressionBody<ReqBody>>>>::Error: Into<Box<dyn Error + Send + Sync>>,
State: Clone + Send + Sync + 'static,
ReqBody: Body + Send + 'static,
ResBody: Body<Data = D> + Send + 'static,
<ResBody as Body>::Error: Into<Box<dyn Error + Send + Sync>>,
D: Buf + 'static,
impl<S, State, ReqBody, ResBody, D> Service<State, Request<ReqBody>> for RequestDecompression<S>where
S: Service<State, Request<DecompressionBody<ReqBody>>, Response = Response<ResBody>>,
<S as Service<State, Request<DecompressionBody<ReqBody>>>>::Error: Into<Box<dyn Error + Send + Sync>>,
State: Clone + Send + Sync + 'static,
ReqBody: Body + Send + 'static,
ResBody: Body<Data = D> + Send + 'static,
<ResBody as Body>::Error: Into<Box<dyn Error + Send + Sync>>,
D: Buf + 'static,
§type Response = Response<UnsyncBoxBody<D, Box<dyn Error + Send + Sync>>>
type Response = Response<UnsyncBoxBody<D, Box<dyn Error + Send + Sync>>>
§async fn serve(
&self,
ctx: Context<State>,
req: Request<ReqBody>,
) -> Result<<RequestDecompression<S> as Service<State, Request<ReqBody>>>::Response, <RequestDecompression<S> as Service<State, Request<ReqBody>>>::Error>
async fn serve( &self, ctx: Context<State>, req: Request<ReqBody>, ) -> Result<<RequestDecompression<S> as Service<State, Request<ReqBody>>>::Response, <RequestDecompression<S> as Service<State, Request<ReqBody>>>::Error>
§fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
§impl<State, S, W, ReqBody, ResBody> Service<State, Request<ReqBody>> for RequestWriterService<S, W>where
State: Clone + Send + Sync + 'static,
S: Service<State, Request<Body>, Response = Response<ResBody>>,
<S as Service<State, Request<Body>>>::Error: Into<Box<dyn Error + Send + Sync>>,
W: RequestWriter,
ReqBody: Body<Data = Bytes> + Send + Sync + 'static,
<ReqBody as Body>::Error: Into<Box<dyn Error + Send + Sync>>,
ResBody: Send + 'static,
impl<State, S, W, ReqBody, ResBody> Service<State, Request<ReqBody>> for RequestWriterService<S, W>where
State: Clone + Send + Sync + 'static,
S: Service<State, Request<Body>, Response = Response<ResBody>>,
<S as Service<State, Request<Body>>>::Error: Into<Box<dyn Error + Send + Sync>>,
W: RequestWriter,
ReqBody: Body<Data = Bytes> + Send + Sync + 'static,
<ReqBody as Body>::Error: Into<Box<dyn Error + Send + Sync>>,
ResBody: Send + 'static,
§async fn serve(
&self,
ctx: Context<State>,
req: Request<ReqBody>,
) -> Result<<RequestWriterService<S, W> as Service<State, Request<ReqBody>>>::Response, <RequestWriterService<S, W> as Service<State, Request<ReqBody>>>::Error>
async fn serve( &self, ctx: Context<State>, req: Request<ReqBody>, ) -> Result<<RequestWriterService<S, W> as Service<State, Request<ReqBody>>>::Response, <RequestWriterService<S, W> as Service<State, Request<ReqBody>>>::Error>
§fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
§impl<State, S, W, ReqBody, ResBody> Service<State, Request<ReqBody>> for ResponseWriterService<S, W>where
State: Clone + Send + Sync + 'static,
S: Service<State, Request<ReqBody>, Response = Response<ResBody>>,
<S as Service<State, Request<ReqBody>>>::Error: Into<Box<dyn Error + Send + Sync>>,
W: ResponseWriter,
ReqBody: Send + 'static,
ResBody: Body<Data = Bytes> + Send + Sync + 'static,
<ResBody as Body>::Error: Into<Box<dyn Error + Send + Sync>>,
impl<State, S, W, ReqBody, ResBody> Service<State, Request<ReqBody>> for ResponseWriterService<S, W>where
State: Clone + Send + Sync + 'static,
S: Service<State, Request<ReqBody>, Response = Response<ResBody>>,
<S as Service<State, Request<ReqBody>>>::Error: Into<Box<dyn Error + Send + Sync>>,
W: ResponseWriter,
ReqBody: Send + 'static,
ResBody: Body<Data = Bytes> + Send + Sync + 'static,
<ResBody as Body>::Error: Into<Box<dyn Error + Send + Sync>>,
§async fn serve(
&self,
ctx: Context<State>,
req: Request<ReqBody>,
) -> Result<<ResponseWriterService<S, W> as Service<State, Request<ReqBody>>>::Response, <ResponseWriterService<S, W> as Service<State, Request<ReqBody>>>::Error>
async fn serve( &self, ctx: Context<State>, req: Request<ReqBody>, ) -> Result<<ResponseWriterService<S, W> as Service<State, Request<ReqBody>>>::Response, <ResponseWriterService<S, W> as Service<State, Request<ReqBody>>>::Error>
§fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
§impl<State, ReqBody, F, FResBody> Service<State, Request<ReqBody>> for ServeDir<F>
impl<State, ReqBody, F, FResBody> Service<State, Request<ReqBody>> for ServeDir<F>
§type Error = Infallible
type Error = Infallible
§async fn serve(
&self,
ctx: Context<State>,
req: Request<ReqBody>,
) -> Result<<ServeDir<F> as Service<State, Request<ReqBody>>>::Response, <ServeDir<F> as Service<State, Request<ReqBody>>>::Error>
async fn serve( &self, ctx: Context<State>, req: Request<ReqBody>, ) -> Result<<ServeDir<F> as Service<State, Request<ReqBody>>>::Response, <ServeDir<F> as Service<State, Request<ReqBody>>>::Error>
§fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
§impl<State, ReqBody> Service<State, Request<ReqBody>> for ServeFile
impl<State, ReqBody> Service<State, Request<ReqBody>> for ServeFile
§type Error = <ServeDir as Service<State, Request<ReqBody>>>::Error
type Error = <ServeDir as Service<State, Request<ReqBody>>>::Error
§type Response = <ServeDir as Service<State, Request<ReqBody>>>::Response
type Response = <ServeDir as Service<State, Request<ReqBody>>>::Response
§async fn serve(
&self,
ctx: Context<State>,
req: Request<ReqBody>,
) -> Result<<ServeFile as Service<State, Request<ReqBody>>>::Response, <ServeFile as Service<State, Request<ReqBody>>>::Error>
async fn serve( &self, ctx: Context<State>, req: Request<ReqBody>, ) -> Result<<ServeFile as Service<State, Request<ReqBody>>>::Response, <ServeFile as Service<State, Request<ReqBody>>>::Error>
§fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
§impl<ReqBody, ResBody, State, S, M> Service<State, Request<ReqBody>> for SetRequestHeader<S, M>
impl<ReqBody, ResBody, State, S, M> Service<State, Request<ReqBody>> for SetRequestHeader<S, M>
§type Response = <S as Service<State, Request<ReqBody>>>::Response
type Response = <S as Service<State, Request<ReqBody>>>::Response
§type Error = <S as Service<State, Request<ReqBody>>>::Error
type Error = <S as Service<State, Request<ReqBody>>>::Error
§async fn serve(
&self,
ctx: Context<State>,
req: Request<ReqBody>,
) -> Result<<SetRequestHeader<S, M> as Service<State, Request<ReqBody>>>::Response, <SetRequestHeader<S, M> as Service<State, Request<ReqBody>>>::Error>
async fn serve( &self, ctx: Context<State>, req: Request<ReqBody>, ) -> Result<<SetRequestHeader<S, M> as Service<State, Request<ReqBody>>>::Response, <SetRequestHeader<S, M> as Service<State, Request<ReqBody>>>::Error>
§fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
§impl<State, S, M, ReqBody, ResBody> Service<State, Request<ReqBody>> for SetRequestId<S, M>
impl<State, S, M, ReqBody, ResBody> Service<State, Request<ReqBody>> for SetRequestId<S, M>
§type Response = <S as Service<State, Request<ReqBody>>>::Response
type Response = <S as Service<State, Request<ReqBody>>>::Response
§type Error = <S as Service<State, Request<ReqBody>>>::Error
type Error = <S as Service<State, Request<ReqBody>>>::Error
§async fn serve(
&self,
ctx: Context<State>,
req: Request<ReqBody>,
) -> Result<<SetRequestId<S, M> as Service<State, Request<ReqBody>>>::Response, <SetRequestId<S, M> as Service<State, Request<ReqBody>>>::Error>
async fn serve( &self, ctx: Context<State>, req: Request<ReqBody>, ) -> Result<<SetRequestId<S, M> as Service<State, Request<ReqBody>>>::Response, <SetRequestId<S, M> as Service<State, Request<ReqBody>>>::Error>
§fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
§impl<ReqBody, ResBody, State, S, M> Service<State, Request<ReqBody>> for SetResponseHeader<S, M>
impl<ReqBody, ResBody, State, S, M> Service<State, Request<ReqBody>> for SetResponseHeader<S, M>
§type Response = <S as Service<State, Request<ReqBody>>>::Response
type Response = <S as Service<State, Request<ReqBody>>>::Response
§type Error = <S as Service<State, Request<ReqBody>>>::Error
type Error = <S as Service<State, Request<ReqBody>>>::Error
§async fn serve(
&self,
ctx: Context<State>,
req: Request<ReqBody>,
) -> Result<<SetResponseHeader<S, M> as Service<State, Request<ReqBody>>>::Response, <SetResponseHeader<S, M> as Service<State, Request<ReqBody>>>::Error>
async fn serve( &self, ctx: Context<State>, req: Request<ReqBody>, ) -> Result<<SetResponseHeader<S, M> as Service<State, Request<ReqBody>>>::Response, <SetResponseHeader<S, M> as Service<State, Request<ReqBody>>>::Error>
§fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
§impl<ReqBody, ResBody, State, S> Service<State, Request<ReqBody>> for SetSensitiveRequestHeaders<S>
impl<ReqBody, ResBody, State, S> Service<State, Request<ReqBody>> for SetSensitiveRequestHeaders<S>
§type Response = <S as Service<State, Request<ReqBody>>>::Response
type Response = <S as Service<State, Request<ReqBody>>>::Response
§type Error = <S as Service<State, Request<ReqBody>>>::Error
type Error = <S as Service<State, Request<ReqBody>>>::Error
§async fn serve(
&self,
ctx: Context<State>,
req: Request<ReqBody>,
) -> Result<<SetSensitiveRequestHeaders<S> as Service<State, Request<ReqBody>>>::Response, <SetSensitiveRequestHeaders<S> as Service<State, Request<ReqBody>>>::Error>
async fn serve( &self, ctx: Context<State>, req: Request<ReqBody>, ) -> Result<<SetSensitiveRequestHeaders<S> as Service<State, Request<ReqBody>>>::Response, <SetSensitiveRequestHeaders<S> as Service<State, Request<ReqBody>>>::Error>
§fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
§impl<ReqBody, ResBody, State, S> Service<State, Request<ReqBody>> for SetSensitiveResponseHeaders<S>
impl<ReqBody, ResBody, State, S> Service<State, Request<ReqBody>> for SetSensitiveResponseHeaders<S>
§type Response = <S as Service<State, Request<ReqBody>>>::Response
type Response = <S as Service<State, Request<ReqBody>>>::Response
§type Error = <S as Service<State, Request<ReqBody>>>::Error
type Error = <S as Service<State, Request<ReqBody>>>::Error
§async fn serve(
&self,
ctx: Context<State>,
req: Request<ReqBody>,
) -> Result<<SetSensitiveResponseHeaders<S> as Service<State, Request<ReqBody>>>::Response, <SetSensitiveResponseHeaders<S> as Service<State, Request<ReqBody>>>::Error>
async fn serve( &self, ctx: Context<State>, req: Request<ReqBody>, ) -> Result<<SetSensitiveResponseHeaders<S> as Service<State, Request<ReqBody>>>::Response, <SetSensitiveResponseHeaders<S> as Service<State, Request<ReqBody>>>::Error>
§fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
§impl<State, S, ReqBody, ResBody> Service<State, Request<ReqBody>> for SetStatus<S>
impl<State, S, ReqBody, ResBody> Service<State, Request<ReqBody>> for SetStatus<S>
§type Response = <S as Service<State, Request<ReqBody>>>::Response
type Response = <S as Service<State, Request<ReqBody>>>::Response
§type Error = <S as Service<State, Request<ReqBody>>>::Error
type Error = <S as Service<State, Request<ReqBody>>>::Error
§async fn serve(
&self,
ctx: Context<State>,
req: Request<ReqBody>,
) -> Result<<SetStatus<S> as Service<State, Request<ReqBody>>>::Response, <SetStatus<S> as Service<State, Request<ReqBody>>>::Error>
async fn serve( &self, ctx: Context<State>, req: Request<ReqBody>, ) -> Result<<SetStatus<S> as Service<State, Request<ReqBody>>>::Response, <SetStatus<S> as Service<State, Request<ReqBody>>>::Error>
§fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
§impl<S, State, ReqBody, ResBody> Service<State, Request<ReqBody>> for Timeout<S>
impl<S, State, ReqBody, ResBody> Service<State, Request<ReqBody>> for Timeout<S>
§type Response = <S as Service<State, Request<ReqBody>>>::Response
type Response = <S as Service<State, Request<ReqBody>>>::Response
§type Error = <S as Service<State, Request<ReqBody>>>::Error
type Error = <S as Service<State, Request<ReqBody>>>::Error
§async fn serve(
&self,
ctx: Context<State>,
req: Request<ReqBody>,
) -> Result<<Timeout<S> as Service<State, Request<ReqBody>>>::Response, <Timeout<S> as Service<State, Request<ReqBody>>>::Error>
async fn serve( &self, ctx: Context<State>, req: Request<ReqBody>, ) -> Result<<Timeout<S> as Service<State, Request<ReqBody>>>::Response, <Timeout<S> as Service<State, Request<ReqBody>>>::Error>
§fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
§impl<S, State, ReqBody, ResBody, M, OnRequestT, OnResponseT, OnFailureT, OnBodyChunkT, OnEosT, MakeSpanT> Service<State, Request<ReqBody>> for Trace<S, M, MakeSpanT, OnRequestT, OnResponseT, OnBodyChunkT, OnEosT, OnFailureT>where
S: Service<State, Request<ReqBody>, Response = Response<ResBody>>,
<S as Service<State, Request<ReqBody>>>::Error: Display,
State: Clone + Send + Sync + 'static,
ReqBody: Body + Send + 'static,
ResBody: Body + Send + Sync + 'static,
<ResBody as Body>::Error: Display,
M: MakeClassifier,
<M as MakeClassifier>::Classifier: Clone,
MakeSpanT: MakeSpan<ReqBody>,
OnRequestT: OnRequest<ReqBody>,
OnResponseT: OnResponse<ResBody> + Clone,
OnBodyChunkT: OnBodyChunk<<ResBody as Body>::Data> + Clone,
OnEosT: OnEos + Clone,
OnFailureT: OnFailure<<M as MakeClassifier>::FailureClass> + Clone,
impl<S, State, ReqBody, ResBody, M, OnRequestT, OnResponseT, OnFailureT, OnBodyChunkT, OnEosT, MakeSpanT> Service<State, Request<ReqBody>> for Trace<S, M, MakeSpanT, OnRequestT, OnResponseT, OnBodyChunkT, OnEosT, OnFailureT>where
S: Service<State, Request<ReqBody>, Response = Response<ResBody>>,
<S as Service<State, Request<ReqBody>>>::Error: Display,
State: Clone + Send + Sync + 'static,
ReqBody: Body + Send + 'static,
ResBody: Body + Send + Sync + 'static,
<ResBody as Body>::Error: Display,
M: MakeClassifier,
<M as MakeClassifier>::Classifier: Clone,
MakeSpanT: MakeSpan<ReqBody>,
OnRequestT: OnRequest<ReqBody>,
OnResponseT: OnResponse<ResBody> + Clone,
OnBodyChunkT: OnBodyChunk<<ResBody as Body>::Data> + Clone,
OnEosT: OnEos + Clone,
OnFailureT: OnFailure<<M as MakeClassifier>::FailureClass> + Clone,
§type Response = Response<ResponseBody<ResBody, <M as MakeClassifier>::ClassifyEos, OnBodyChunkT, OnEosT, OnFailureT>>
type Response = Response<ResponseBody<ResBody, <M as MakeClassifier>::ClassifyEos, OnBodyChunkT, OnEosT, OnFailureT>>
§type Error = <S as Service<State, Request<ReqBody>>>::Error
type Error = <S as Service<State, Request<ReqBody>>>::Error
§async fn serve(
&self,
ctx: Context<State>,
req: Request<ReqBody>,
) -> Result<<Trace<S, M, MakeSpanT, OnRequestT, OnResponseT, OnBodyChunkT, OnEosT, OnFailureT> as Service<State, Request<ReqBody>>>::Response, <Trace<S, M, MakeSpanT, OnRequestT, OnResponseT, OnBodyChunkT, OnEosT, OnFailureT> as Service<State, Request<ReqBody>>>::Error>
async fn serve( &self, ctx: Context<State>, req: Request<ReqBody>, ) -> Result<<Trace<S, M, MakeSpanT, OnRequestT, OnResponseT, OnBodyChunkT, OnEosT, OnFailureT> as Service<State, Request<ReqBody>>>::Response, <Trace<S, M, MakeSpanT, OnRequestT, OnResponseT, OnBodyChunkT, OnEosT, OnFailureT> as Service<State, Request<ReqBody>>>::Error>
§fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
§impl<ReqBody, ResBody, State, S, V> Service<State, Request<ReqBody>> for ValidateRequestHeader<S, V>
impl<ReqBody, ResBody, State, S, V> Service<State, Request<ReqBody>> for ValidateRequestHeader<S, V>
§type Error = <S as Service<State, Request<ReqBody>>>::Error
type Error = <S as Service<State, Request<ReqBody>>>::Error
§async fn serve(
&self,
ctx: Context<State>,
req: Request<ReqBody>,
) -> Result<<ValidateRequestHeader<S, V> as Service<State, Request<ReqBody>>>::Response, <ValidateRequestHeader<S, V> as Service<State, Request<ReqBody>>>::Error>
async fn serve( &self, ctx: Context<State>, req: Request<ReqBody>, ) -> Result<<ValidateRequestHeader<S, V> as Service<State, Request<ReqBody>>>::Response, <ValidateRequestHeader<S, V> as Service<State, Request<ReqBody>>>::Error>
§fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
fn boxed(self) -> BoxService<S, Request, Self::Response, Self::Error>
§impl<State, Body> TryRefIntoTransportContext<State> for Request<Body>
impl<State, Body> TryRefIntoTransportContext<State> for Request<Body>
§type Error = OpaqueError
type Error = OpaqueError
§fn try_ref_into_transport_ctx(
&self,
ctx: &Context<State>,
) -> Result<TransportContext, <Request<Body> as TryRefIntoTransportContext<State>>::Error>
fn try_ref_into_transport_ctx( &self, ctx: &Context<State>, ) -> Result<TransportContext, <Request<Body> as TryRefIntoTransportContext<State>>::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§
§impl<T> BodyExt for T
impl<T> BodyExt for T
§fn frame(&mut self) -> Frame<'_, Self> ⓘwhere
Self: Unpin,
fn frame(&mut self) -> Frame<'_, Self> ⓘwhere
Self: Unpin,
Frame
, if any.§fn boxed_unsync(self) -> UnsyncBoxBody<Self::Data, Self::Error>
fn boxed_unsync(self) -> UnsyncBoxBody<Self::Data, Self::Error>
§fn collect(self) -> Collect<Self> ⓘwhere
Self: Sized,
fn collect(self) -> Collect<Self> ⓘwhere
Self: Sized,
Collected
body which will collect all the DATA frames
and trailers.§fn with_trailers<F>(self, trailers: F) -> WithTrailers<Self, F>
fn with_trailers<F>(self, trailers: F) -> WithTrailers<Self, F>
§fn into_data_stream(self) -> BodyDataStream<Self>where
Self: Sized,
fn into_data_stream(self) -> BodyDataStream<Self>where
Self: Sized,
BodyDataStream
.source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)§impl<T> Conv for T
impl<T> Conv for T
§impl<T> FmtForward for T
impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
self
to use its LowerExp
implementation when
Debug
-formatted.§fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
self
to use its LowerHex
implementation when
Debug
-formatted.§fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
self
to use its Octal
implementation when Debug
-formatted.§fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
self
to use its Pointer
implementation when
Debug
-formatted.§fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
self
to use its UpperExp
implementation when
Debug
-formatted.§fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
self
to use its UpperHex
implementation when
Debug
-formatted.§fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
self
and passes that borrow into the pipe function. Read more§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
self
and passes that borrow into the pipe function. Read more§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R,
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
self
, then passes self.as_ref()
into the pipe function.§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
self
, then passes self.as_mut()
into the pipe
function.§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
self
, then passes self.deref()
into the pipe function.§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§fn and<S, P, B, E>(self, other: P) -> And<T, P>
fn and<S, P, B, E>(self, other: P) -> And<T, P>
Policy
that returns Action::Follow
only if self
and other
return
Action::Follow
. Read more§impl<T> Tap for T
impl<T> Tap for T
§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Borrow<B>
of a value. Read more§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
BorrowMut<B>
of a value. Read more§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
AsRef<R>
view of a value. Read more§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
AsMut<R>
view of a value. Read more§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Deref::Target
of a value. Read more§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Deref::Target
of a value. Read more§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
.tap()
only in debug builds, and is erased in release builds.§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
.tap_mut()
only in debug builds, and is erased in release
builds.§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
.tap_borrow()
only in debug builds, and is erased in release
builds.§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
.tap_borrow_mut()
only in debug builds, and is erased in release
builds.§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
.tap_ref()
only in debug builds, and is erased in release
builds.§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
.tap_ref_mut()
only in debug builds, and is erased in release
builds.§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
.tap_deref()
only in debug builds, and is erased in release
builds.