pub struct ConnectHandlerWrapper<F>(pub F);Expand description
A wrapper that adapts ConnectHandler functions to work with Axum’s Handler trait
Tuple Fields§
§0: FTrait Implementations§
Source§impl<F: Clone> Clone for ConnectHandlerWrapper<F>
impl<F: Clone> Clone for ConnectHandlerWrapper<F>
Source§fn clone(&self) -> ConnectHandlerWrapper<F>
fn clone(&self) -> ConnectHandlerWrapper<F>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<F, Fut, S, Req, Resp, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16> Handler<(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, ConnectRequest<Req>), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, ConnectRequest<Req>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<Resp>, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
A3: FromRequestParts<S> + Send + Sync + 'static,
<A3 as FromRequestParts<S>>::Rejection: 'static,
A4: FromRequestParts<S> + Send + Sync + 'static,
<A4 as FromRequestParts<S>>::Rejection: 'static,
A5: FromRequestParts<S> + Send + Sync + 'static,
<A5 as FromRequestParts<S>>::Rejection: 'static,
A6: FromRequestParts<S> + Send + Sync + 'static,
<A6 as FromRequestParts<S>>::Rejection: 'static,
A7: FromRequestParts<S> + Send + Sync + 'static,
<A7 as FromRequestParts<S>>::Rejection: 'static,
A8: FromRequestParts<S> + Send + Sync + 'static,
<A8 as FromRequestParts<S>>::Rejection: 'static,
A9: FromRequestParts<S> + Send + Sync + 'static,
<A9 as FromRequestParts<S>>::Rejection: 'static,
A10: FromRequestParts<S> + Send + Sync + 'static,
<A10 as FromRequestParts<S>>::Rejection: 'static,
A11: FromRequestParts<S> + Send + Sync + 'static,
<A11 as FromRequestParts<S>>::Rejection: 'static,
A12: FromRequestParts<S> + Send + Sync + 'static,
<A12 as FromRequestParts<S>>::Rejection: 'static,
A13: FromRequestParts<S> + Send + Sync + 'static,
<A13 as FromRequestParts<S>>::Rejection: 'static,
A14: FromRequestParts<S> + Send + Sync + 'static,
<A14 as FromRequestParts<S>>::Rejection: 'static,
A15: FromRequestParts<S> + Send + Sync + 'static,
<A15 as FromRequestParts<S>>::Rejection: 'static,
A16: FromRequestParts<S> + Send + Sync + 'static,
<A16 as FromRequestParts<S>>::Rejection: 'static,
ConnectRequest<Req>: FromRequest<S>,
Req: Send + Sync + 'static,
Resp: Message + Serialize + Send + Clone + Sync + 'static,
impl<F, Fut, S, Req, Resp, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16> Handler<(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, ConnectRequest<Req>), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, ConnectRequest<Req>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<Resp>, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
A3: FromRequestParts<S> + Send + Sync + 'static,
<A3 as FromRequestParts<S>>::Rejection: 'static,
A4: FromRequestParts<S> + Send + Sync + 'static,
<A4 as FromRequestParts<S>>::Rejection: 'static,
A5: FromRequestParts<S> + Send + Sync + 'static,
<A5 as FromRequestParts<S>>::Rejection: 'static,
A6: FromRequestParts<S> + Send + Sync + 'static,
<A6 as FromRequestParts<S>>::Rejection: 'static,
A7: FromRequestParts<S> + Send + Sync + 'static,
<A7 as FromRequestParts<S>>::Rejection: 'static,
A8: FromRequestParts<S> + Send + Sync + 'static,
<A8 as FromRequestParts<S>>::Rejection: 'static,
A9: FromRequestParts<S> + Send + Sync + 'static,
<A9 as FromRequestParts<S>>::Rejection: 'static,
A10: FromRequestParts<S> + Send + Sync + 'static,
<A10 as FromRequestParts<S>>::Rejection: 'static,
A11: FromRequestParts<S> + Send + Sync + 'static,
<A11 as FromRequestParts<S>>::Rejection: 'static,
A12: FromRequestParts<S> + Send + Sync + 'static,
<A12 as FromRequestParts<S>>::Rejection: 'static,
A13: FromRequestParts<S> + Send + Sync + 'static,
<A13 as FromRequestParts<S>>::Rejection: 'static,
A14: FromRequestParts<S> + Send + Sync + 'static,
<A14 as FromRequestParts<S>>::Rejection: 'static,
A15: FromRequestParts<S> + Send + Sync + 'static,
<A15 as FromRequestParts<S>>::Rejection: 'static,
A16: FromRequestParts<S> + Send + Sync + 'static,
<A16 as FromRequestParts<S>>::Rejection: 'static,
ConnectRequest<Req>: FromRequest<S>,
Req: Send + Sync + 'static,
Resp: Message + Serialize + Send + Clone + Sync + 'static,
Source§type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
The type of future calling this handler returns.
Source§fn call(self, req: Request, state: S) -> Self::Future
fn call(self, req: Request, state: S) -> Self::Future
Call the handler with the given request.
Source§fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
Apply a
tower::Layer to the handler. Read moreSource§fn with_state(self, state: S) -> HandlerService<Self, T, S>
fn with_state(self, state: S) -> HandlerService<Self, T, S>
Convert the handler into a
Service by providing the stateSource§impl<F, Fut, S, Req, Resp, St, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16> Handler<(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, ConnectRequest<Req>, StreamBody<St>), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, ConnectRequest<Req>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<StreamBody<St>>, ConnectError>> + Send + 'static,
St: Stream<Item = Result<Resp, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
A3: FromRequestParts<S> + Send + Sync + 'static,
<A3 as FromRequestParts<S>>::Rejection: 'static,
A4: FromRequestParts<S> + Send + Sync + 'static,
<A4 as FromRequestParts<S>>::Rejection: 'static,
A5: FromRequestParts<S> + Send + Sync + 'static,
<A5 as FromRequestParts<S>>::Rejection: 'static,
A6: FromRequestParts<S> + Send + Sync + 'static,
<A6 as FromRequestParts<S>>::Rejection: 'static,
A7: FromRequestParts<S> + Send + Sync + 'static,
<A7 as FromRequestParts<S>>::Rejection: 'static,
A8: FromRequestParts<S> + Send + Sync + 'static,
<A8 as FromRequestParts<S>>::Rejection: 'static,
A9: FromRequestParts<S> + Send + Sync + 'static,
<A9 as FromRequestParts<S>>::Rejection: 'static,
A10: FromRequestParts<S> + Send + Sync + 'static,
<A10 as FromRequestParts<S>>::Rejection: 'static,
A11: FromRequestParts<S> + Send + Sync + 'static,
<A11 as FromRequestParts<S>>::Rejection: 'static,
A12: FromRequestParts<S> + Send + Sync + 'static,
<A12 as FromRequestParts<S>>::Rejection: 'static,
A13: FromRequestParts<S> + Send + Sync + 'static,
<A13 as FromRequestParts<S>>::Rejection: 'static,
A14: FromRequestParts<S> + Send + Sync + 'static,
<A14 as FromRequestParts<S>>::Rejection: 'static,
A15: FromRequestParts<S> + Send + Sync + 'static,
<A15 as FromRequestParts<S>>::Rejection: 'static,
A16: FromRequestParts<S> + Send + Sync + 'static,
<A16 as FromRequestParts<S>>::Rejection: 'static,
Req: Message + DeserializeOwned + Default + Send + Sync + 'static,
Resp: Message + Serialize + Send + Sync + 'static,
impl<F, Fut, S, Req, Resp, St, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16> Handler<(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, ConnectRequest<Req>, StreamBody<St>), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, ConnectRequest<Req>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<StreamBody<St>>, ConnectError>> + Send + 'static,
St: Stream<Item = Result<Resp, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
A3: FromRequestParts<S> + Send + Sync + 'static,
<A3 as FromRequestParts<S>>::Rejection: 'static,
A4: FromRequestParts<S> + Send + Sync + 'static,
<A4 as FromRequestParts<S>>::Rejection: 'static,
A5: FromRequestParts<S> + Send + Sync + 'static,
<A5 as FromRequestParts<S>>::Rejection: 'static,
A6: FromRequestParts<S> + Send + Sync + 'static,
<A6 as FromRequestParts<S>>::Rejection: 'static,
A7: FromRequestParts<S> + Send + Sync + 'static,
<A7 as FromRequestParts<S>>::Rejection: 'static,
A8: FromRequestParts<S> + Send + Sync + 'static,
<A8 as FromRequestParts<S>>::Rejection: 'static,
A9: FromRequestParts<S> + Send + Sync + 'static,
<A9 as FromRequestParts<S>>::Rejection: 'static,
A10: FromRequestParts<S> + Send + Sync + 'static,
<A10 as FromRequestParts<S>>::Rejection: 'static,
A11: FromRequestParts<S> + Send + Sync + 'static,
<A11 as FromRequestParts<S>>::Rejection: 'static,
A12: FromRequestParts<S> + Send + Sync + 'static,
<A12 as FromRequestParts<S>>::Rejection: 'static,
A13: FromRequestParts<S> + Send + Sync + 'static,
<A13 as FromRequestParts<S>>::Rejection: 'static,
A14: FromRequestParts<S> + Send + Sync + 'static,
<A14 as FromRequestParts<S>>::Rejection: 'static,
A15: FromRequestParts<S> + Send + Sync + 'static,
<A15 as FromRequestParts<S>>::Rejection: 'static,
A16: FromRequestParts<S> + Send + Sync + 'static,
<A16 as FromRequestParts<S>>::Rejection: 'static,
Req: Message + DeserializeOwned + Default + Send + Sync + 'static,
Resp: Message + Serialize + Send + Sync + 'static,
Source§type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
The type of future calling this handler returns.
Source§fn call(self, req: Request, state: S) -> Self::Future
fn call(self, req: Request, state: S) -> Self::Future
Call the handler with the given request.
Source§fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
Apply a
tower::Layer to the handler. Read moreSource§fn with_state(self, state: S) -> HandlerService<Self, T, S>
fn with_state(self, state: S) -> HandlerService<Self, T, S>
Convert the handler into a
Service by providing the stateSource§impl<F, Fut, S, Req, Resp, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16> Handler<(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, ConnectRequest<Streaming<Req>>, Resp), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, ConnectRequest<Streaming<Req>>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<Resp>, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
A3: FromRequestParts<S> + Send + Sync + 'static,
<A3 as FromRequestParts<S>>::Rejection: 'static,
A4: FromRequestParts<S> + Send + Sync + 'static,
<A4 as FromRequestParts<S>>::Rejection: 'static,
A5: FromRequestParts<S> + Send + Sync + 'static,
<A5 as FromRequestParts<S>>::Rejection: 'static,
A6: FromRequestParts<S> + Send + Sync + 'static,
<A6 as FromRequestParts<S>>::Rejection: 'static,
A7: FromRequestParts<S> + Send + Sync + 'static,
<A7 as FromRequestParts<S>>::Rejection: 'static,
A8: FromRequestParts<S> + Send + Sync + 'static,
<A8 as FromRequestParts<S>>::Rejection: 'static,
A9: FromRequestParts<S> + Send + Sync + 'static,
<A9 as FromRequestParts<S>>::Rejection: 'static,
A10: FromRequestParts<S> + Send + Sync + 'static,
<A10 as FromRequestParts<S>>::Rejection: 'static,
A11: FromRequestParts<S> + Send + Sync + 'static,
<A11 as FromRequestParts<S>>::Rejection: 'static,
A12: FromRequestParts<S> + Send + Sync + 'static,
<A12 as FromRequestParts<S>>::Rejection: 'static,
A13: FromRequestParts<S> + Send + Sync + 'static,
<A13 as FromRequestParts<S>>::Rejection: 'static,
A14: FromRequestParts<S> + Send + Sync + 'static,
<A14 as FromRequestParts<S>>::Rejection: 'static,
A15: FromRequestParts<S> + Send + Sync + 'static,
<A15 as FromRequestParts<S>>::Rejection: 'static,
A16: FromRequestParts<S> + Send + Sync + 'static,
<A16 as FromRequestParts<S>>::Rejection: 'static,
Req: Message + DeserializeOwned + Default + Send + 'static,
Resp: Message + Serialize + Send + Clone + Sync + 'static,
impl<F, Fut, S, Req, Resp, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16> Handler<(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, ConnectRequest<Streaming<Req>>, Resp), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, ConnectRequest<Streaming<Req>>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<Resp>, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
A3: FromRequestParts<S> + Send + Sync + 'static,
<A3 as FromRequestParts<S>>::Rejection: 'static,
A4: FromRequestParts<S> + Send + Sync + 'static,
<A4 as FromRequestParts<S>>::Rejection: 'static,
A5: FromRequestParts<S> + Send + Sync + 'static,
<A5 as FromRequestParts<S>>::Rejection: 'static,
A6: FromRequestParts<S> + Send + Sync + 'static,
<A6 as FromRequestParts<S>>::Rejection: 'static,
A7: FromRequestParts<S> + Send + Sync + 'static,
<A7 as FromRequestParts<S>>::Rejection: 'static,
A8: FromRequestParts<S> + Send + Sync + 'static,
<A8 as FromRequestParts<S>>::Rejection: 'static,
A9: FromRequestParts<S> + Send + Sync + 'static,
<A9 as FromRequestParts<S>>::Rejection: 'static,
A10: FromRequestParts<S> + Send + Sync + 'static,
<A10 as FromRequestParts<S>>::Rejection: 'static,
A11: FromRequestParts<S> + Send + Sync + 'static,
<A11 as FromRequestParts<S>>::Rejection: 'static,
A12: FromRequestParts<S> + Send + Sync + 'static,
<A12 as FromRequestParts<S>>::Rejection: 'static,
A13: FromRequestParts<S> + Send + Sync + 'static,
<A13 as FromRequestParts<S>>::Rejection: 'static,
A14: FromRequestParts<S> + Send + Sync + 'static,
<A14 as FromRequestParts<S>>::Rejection: 'static,
A15: FromRequestParts<S> + Send + Sync + 'static,
<A15 as FromRequestParts<S>>::Rejection: 'static,
A16: FromRequestParts<S> + Send + Sync + 'static,
<A16 as FromRequestParts<S>>::Rejection: 'static,
Req: Message + DeserializeOwned + Default + Send + 'static,
Resp: Message + Serialize + Send + Clone + Sync + 'static,
Source§type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
The type of future calling this handler returns.
Source§fn call(self, req: Request, state: S) -> Self::Future
fn call(self, req: Request, state: S) -> Self::Future
Call the handler with the given request.
Source§fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
Apply a
tower::Layer to the handler. Read moreSource§fn with_state(self, state: S) -> HandlerService<Self, T, S>
fn with_state(self, state: S) -> HandlerService<Self, T, S>
Convert the handler into a
Service by providing the stateSource§impl<F, Fut, S, Req, Resp, St, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16> Handler<(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, ConnectRequest<Streaming<Req>>, StreamBody<St>), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, ConnectRequest<Streaming<Req>>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<StreamBody<St>>, ConnectError>> + Send + 'static,
St: Stream<Item = Result<Resp, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
A3: FromRequestParts<S> + Send + Sync + 'static,
<A3 as FromRequestParts<S>>::Rejection: 'static,
A4: FromRequestParts<S> + Send + Sync + 'static,
<A4 as FromRequestParts<S>>::Rejection: 'static,
A5: FromRequestParts<S> + Send + Sync + 'static,
<A5 as FromRequestParts<S>>::Rejection: 'static,
A6: FromRequestParts<S> + Send + Sync + 'static,
<A6 as FromRequestParts<S>>::Rejection: 'static,
A7: FromRequestParts<S> + Send + Sync + 'static,
<A7 as FromRequestParts<S>>::Rejection: 'static,
A8: FromRequestParts<S> + Send + Sync + 'static,
<A8 as FromRequestParts<S>>::Rejection: 'static,
A9: FromRequestParts<S> + Send + Sync + 'static,
<A9 as FromRequestParts<S>>::Rejection: 'static,
A10: FromRequestParts<S> + Send + Sync + 'static,
<A10 as FromRequestParts<S>>::Rejection: 'static,
A11: FromRequestParts<S> + Send + Sync + 'static,
<A11 as FromRequestParts<S>>::Rejection: 'static,
A12: FromRequestParts<S> + Send + Sync + 'static,
<A12 as FromRequestParts<S>>::Rejection: 'static,
A13: FromRequestParts<S> + Send + Sync + 'static,
<A13 as FromRequestParts<S>>::Rejection: 'static,
A14: FromRequestParts<S> + Send + Sync + 'static,
<A14 as FromRequestParts<S>>::Rejection: 'static,
A15: FromRequestParts<S> + Send + Sync + 'static,
<A15 as FromRequestParts<S>>::Rejection: 'static,
A16: FromRequestParts<S> + Send + Sync + 'static,
<A16 as FromRequestParts<S>>::Rejection: 'static,
Req: Message + DeserializeOwned + Default + Send + 'static,
Resp: Message + Serialize + Send + Sync + 'static,
impl<F, Fut, S, Req, Resp, St, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16> Handler<(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, ConnectRequest<Streaming<Req>>, StreamBody<St>), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, ConnectRequest<Streaming<Req>>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<StreamBody<St>>, ConnectError>> + Send + 'static,
St: Stream<Item = Result<Resp, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
A3: FromRequestParts<S> + Send + Sync + 'static,
<A3 as FromRequestParts<S>>::Rejection: 'static,
A4: FromRequestParts<S> + Send + Sync + 'static,
<A4 as FromRequestParts<S>>::Rejection: 'static,
A5: FromRequestParts<S> + Send + Sync + 'static,
<A5 as FromRequestParts<S>>::Rejection: 'static,
A6: FromRequestParts<S> + Send + Sync + 'static,
<A6 as FromRequestParts<S>>::Rejection: 'static,
A7: FromRequestParts<S> + Send + Sync + 'static,
<A7 as FromRequestParts<S>>::Rejection: 'static,
A8: FromRequestParts<S> + Send + Sync + 'static,
<A8 as FromRequestParts<S>>::Rejection: 'static,
A9: FromRequestParts<S> + Send + Sync + 'static,
<A9 as FromRequestParts<S>>::Rejection: 'static,
A10: FromRequestParts<S> + Send + Sync + 'static,
<A10 as FromRequestParts<S>>::Rejection: 'static,
A11: FromRequestParts<S> + Send + Sync + 'static,
<A11 as FromRequestParts<S>>::Rejection: 'static,
A12: FromRequestParts<S> + Send + Sync + 'static,
<A12 as FromRequestParts<S>>::Rejection: 'static,
A13: FromRequestParts<S> + Send + Sync + 'static,
<A13 as FromRequestParts<S>>::Rejection: 'static,
A14: FromRequestParts<S> + Send + Sync + 'static,
<A14 as FromRequestParts<S>>::Rejection: 'static,
A15: FromRequestParts<S> + Send + Sync + 'static,
<A15 as FromRequestParts<S>>::Rejection: 'static,
A16: FromRequestParts<S> + Send + Sync + 'static,
<A16 as FromRequestParts<S>>::Rejection: 'static,
Req: Message + DeserializeOwned + Default + Send + 'static,
Resp: Message + Serialize + Send + Sync + 'static,
Source§type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
The type of future calling this handler returns.
Source§fn call(self, req: Request, state: S) -> Self::Future
fn call(self, req: Request, state: S) -> Self::Future
Call the handler with the given request.
Source§fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
Apply a
tower::Layer to the handler. Read moreSource§fn with_state(self, state: S) -> HandlerService<Self, T, S>
fn with_state(self, state: S) -> HandlerService<Self, T, S>
Convert the handler into a
Service by providing the stateSource§impl<F, Fut, S, Req, Resp, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15> Handler<(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, ConnectRequest<Req>), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, ConnectRequest<Req>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<Resp>, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
A3: FromRequestParts<S> + Send + Sync + 'static,
<A3 as FromRequestParts<S>>::Rejection: 'static,
A4: FromRequestParts<S> + Send + Sync + 'static,
<A4 as FromRequestParts<S>>::Rejection: 'static,
A5: FromRequestParts<S> + Send + Sync + 'static,
<A5 as FromRequestParts<S>>::Rejection: 'static,
A6: FromRequestParts<S> + Send + Sync + 'static,
<A6 as FromRequestParts<S>>::Rejection: 'static,
A7: FromRequestParts<S> + Send + Sync + 'static,
<A7 as FromRequestParts<S>>::Rejection: 'static,
A8: FromRequestParts<S> + Send + Sync + 'static,
<A8 as FromRequestParts<S>>::Rejection: 'static,
A9: FromRequestParts<S> + Send + Sync + 'static,
<A9 as FromRequestParts<S>>::Rejection: 'static,
A10: FromRequestParts<S> + Send + Sync + 'static,
<A10 as FromRequestParts<S>>::Rejection: 'static,
A11: FromRequestParts<S> + Send + Sync + 'static,
<A11 as FromRequestParts<S>>::Rejection: 'static,
A12: FromRequestParts<S> + Send + Sync + 'static,
<A12 as FromRequestParts<S>>::Rejection: 'static,
A13: FromRequestParts<S> + Send + Sync + 'static,
<A13 as FromRequestParts<S>>::Rejection: 'static,
A14: FromRequestParts<S> + Send + Sync + 'static,
<A14 as FromRequestParts<S>>::Rejection: 'static,
A15: FromRequestParts<S> + Send + Sync + 'static,
<A15 as FromRequestParts<S>>::Rejection: 'static,
ConnectRequest<Req>: FromRequest<S>,
Req: Send + Sync + 'static,
Resp: Message + Serialize + Send + Clone + Sync + 'static,
impl<F, Fut, S, Req, Resp, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15> Handler<(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, ConnectRequest<Req>), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, ConnectRequest<Req>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<Resp>, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
A3: FromRequestParts<S> + Send + Sync + 'static,
<A3 as FromRequestParts<S>>::Rejection: 'static,
A4: FromRequestParts<S> + Send + Sync + 'static,
<A4 as FromRequestParts<S>>::Rejection: 'static,
A5: FromRequestParts<S> + Send + Sync + 'static,
<A5 as FromRequestParts<S>>::Rejection: 'static,
A6: FromRequestParts<S> + Send + Sync + 'static,
<A6 as FromRequestParts<S>>::Rejection: 'static,
A7: FromRequestParts<S> + Send + Sync + 'static,
<A7 as FromRequestParts<S>>::Rejection: 'static,
A8: FromRequestParts<S> + Send + Sync + 'static,
<A8 as FromRequestParts<S>>::Rejection: 'static,
A9: FromRequestParts<S> + Send + Sync + 'static,
<A9 as FromRequestParts<S>>::Rejection: 'static,
A10: FromRequestParts<S> + Send + Sync + 'static,
<A10 as FromRequestParts<S>>::Rejection: 'static,
A11: FromRequestParts<S> + Send + Sync + 'static,
<A11 as FromRequestParts<S>>::Rejection: 'static,
A12: FromRequestParts<S> + Send + Sync + 'static,
<A12 as FromRequestParts<S>>::Rejection: 'static,
A13: FromRequestParts<S> + Send + Sync + 'static,
<A13 as FromRequestParts<S>>::Rejection: 'static,
A14: FromRequestParts<S> + Send + Sync + 'static,
<A14 as FromRequestParts<S>>::Rejection: 'static,
A15: FromRequestParts<S> + Send + Sync + 'static,
<A15 as FromRequestParts<S>>::Rejection: 'static,
ConnectRequest<Req>: FromRequest<S>,
Req: Send + Sync + 'static,
Resp: Message + Serialize + Send + Clone + Sync + 'static,
Source§type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
The type of future calling this handler returns.
Source§fn call(self, req: Request, state: S) -> Self::Future
fn call(self, req: Request, state: S) -> Self::Future
Call the handler with the given request.
Source§fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
Apply a
tower::Layer to the handler. Read moreSource§fn with_state(self, state: S) -> HandlerService<Self, T, S>
fn with_state(self, state: S) -> HandlerService<Self, T, S>
Convert the handler into a
Service by providing the stateSource§impl<F, Fut, S, Req, Resp, St, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15> Handler<(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, ConnectRequest<Req>, StreamBody<St>), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, ConnectRequest<Req>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<StreamBody<St>>, ConnectError>> + Send + 'static,
St: Stream<Item = Result<Resp, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
A3: FromRequestParts<S> + Send + Sync + 'static,
<A3 as FromRequestParts<S>>::Rejection: 'static,
A4: FromRequestParts<S> + Send + Sync + 'static,
<A4 as FromRequestParts<S>>::Rejection: 'static,
A5: FromRequestParts<S> + Send + Sync + 'static,
<A5 as FromRequestParts<S>>::Rejection: 'static,
A6: FromRequestParts<S> + Send + Sync + 'static,
<A6 as FromRequestParts<S>>::Rejection: 'static,
A7: FromRequestParts<S> + Send + Sync + 'static,
<A7 as FromRequestParts<S>>::Rejection: 'static,
A8: FromRequestParts<S> + Send + Sync + 'static,
<A8 as FromRequestParts<S>>::Rejection: 'static,
A9: FromRequestParts<S> + Send + Sync + 'static,
<A9 as FromRequestParts<S>>::Rejection: 'static,
A10: FromRequestParts<S> + Send + Sync + 'static,
<A10 as FromRequestParts<S>>::Rejection: 'static,
A11: FromRequestParts<S> + Send + Sync + 'static,
<A11 as FromRequestParts<S>>::Rejection: 'static,
A12: FromRequestParts<S> + Send + Sync + 'static,
<A12 as FromRequestParts<S>>::Rejection: 'static,
A13: FromRequestParts<S> + Send + Sync + 'static,
<A13 as FromRequestParts<S>>::Rejection: 'static,
A14: FromRequestParts<S> + Send + Sync + 'static,
<A14 as FromRequestParts<S>>::Rejection: 'static,
A15: FromRequestParts<S> + Send + Sync + 'static,
<A15 as FromRequestParts<S>>::Rejection: 'static,
Req: Message + DeserializeOwned + Default + Send + Sync + 'static,
Resp: Message + Serialize + Send + Sync + 'static,
impl<F, Fut, S, Req, Resp, St, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15> Handler<(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, ConnectRequest<Req>, StreamBody<St>), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, ConnectRequest<Req>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<StreamBody<St>>, ConnectError>> + Send + 'static,
St: Stream<Item = Result<Resp, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
A3: FromRequestParts<S> + Send + Sync + 'static,
<A3 as FromRequestParts<S>>::Rejection: 'static,
A4: FromRequestParts<S> + Send + Sync + 'static,
<A4 as FromRequestParts<S>>::Rejection: 'static,
A5: FromRequestParts<S> + Send + Sync + 'static,
<A5 as FromRequestParts<S>>::Rejection: 'static,
A6: FromRequestParts<S> + Send + Sync + 'static,
<A6 as FromRequestParts<S>>::Rejection: 'static,
A7: FromRequestParts<S> + Send + Sync + 'static,
<A7 as FromRequestParts<S>>::Rejection: 'static,
A8: FromRequestParts<S> + Send + Sync + 'static,
<A8 as FromRequestParts<S>>::Rejection: 'static,
A9: FromRequestParts<S> + Send + Sync + 'static,
<A9 as FromRequestParts<S>>::Rejection: 'static,
A10: FromRequestParts<S> + Send + Sync + 'static,
<A10 as FromRequestParts<S>>::Rejection: 'static,
A11: FromRequestParts<S> + Send + Sync + 'static,
<A11 as FromRequestParts<S>>::Rejection: 'static,
A12: FromRequestParts<S> + Send + Sync + 'static,
<A12 as FromRequestParts<S>>::Rejection: 'static,
A13: FromRequestParts<S> + Send + Sync + 'static,
<A13 as FromRequestParts<S>>::Rejection: 'static,
A14: FromRequestParts<S> + Send + Sync + 'static,
<A14 as FromRequestParts<S>>::Rejection: 'static,
A15: FromRequestParts<S> + Send + Sync + 'static,
<A15 as FromRequestParts<S>>::Rejection: 'static,
Req: Message + DeserializeOwned + Default + Send + Sync + 'static,
Resp: Message + Serialize + Send + Sync + 'static,
Source§type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
The type of future calling this handler returns.
Source§fn call(self, req: Request, state: S) -> Self::Future
fn call(self, req: Request, state: S) -> Self::Future
Call the handler with the given request.
Source§fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
Apply a
tower::Layer to the handler. Read moreSource§fn with_state(self, state: S) -> HandlerService<Self, T, S>
fn with_state(self, state: S) -> HandlerService<Self, T, S>
Convert the handler into a
Service by providing the stateSource§impl<F, Fut, S, Req, Resp, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15> Handler<(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, ConnectRequest<Streaming<Req>>, Resp), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, ConnectRequest<Streaming<Req>>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<Resp>, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
A3: FromRequestParts<S> + Send + Sync + 'static,
<A3 as FromRequestParts<S>>::Rejection: 'static,
A4: FromRequestParts<S> + Send + Sync + 'static,
<A4 as FromRequestParts<S>>::Rejection: 'static,
A5: FromRequestParts<S> + Send + Sync + 'static,
<A5 as FromRequestParts<S>>::Rejection: 'static,
A6: FromRequestParts<S> + Send + Sync + 'static,
<A6 as FromRequestParts<S>>::Rejection: 'static,
A7: FromRequestParts<S> + Send + Sync + 'static,
<A7 as FromRequestParts<S>>::Rejection: 'static,
A8: FromRequestParts<S> + Send + Sync + 'static,
<A8 as FromRequestParts<S>>::Rejection: 'static,
A9: FromRequestParts<S> + Send + Sync + 'static,
<A9 as FromRequestParts<S>>::Rejection: 'static,
A10: FromRequestParts<S> + Send + Sync + 'static,
<A10 as FromRequestParts<S>>::Rejection: 'static,
A11: FromRequestParts<S> + Send + Sync + 'static,
<A11 as FromRequestParts<S>>::Rejection: 'static,
A12: FromRequestParts<S> + Send + Sync + 'static,
<A12 as FromRequestParts<S>>::Rejection: 'static,
A13: FromRequestParts<S> + Send + Sync + 'static,
<A13 as FromRequestParts<S>>::Rejection: 'static,
A14: FromRequestParts<S> + Send + Sync + 'static,
<A14 as FromRequestParts<S>>::Rejection: 'static,
A15: FromRequestParts<S> + Send + Sync + 'static,
<A15 as FromRequestParts<S>>::Rejection: 'static,
Req: Message + DeserializeOwned + Default + Send + 'static,
Resp: Message + Serialize + Send + Clone + Sync + 'static,
impl<F, Fut, S, Req, Resp, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15> Handler<(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, ConnectRequest<Streaming<Req>>, Resp), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, ConnectRequest<Streaming<Req>>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<Resp>, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
A3: FromRequestParts<S> + Send + Sync + 'static,
<A3 as FromRequestParts<S>>::Rejection: 'static,
A4: FromRequestParts<S> + Send + Sync + 'static,
<A4 as FromRequestParts<S>>::Rejection: 'static,
A5: FromRequestParts<S> + Send + Sync + 'static,
<A5 as FromRequestParts<S>>::Rejection: 'static,
A6: FromRequestParts<S> + Send + Sync + 'static,
<A6 as FromRequestParts<S>>::Rejection: 'static,
A7: FromRequestParts<S> + Send + Sync + 'static,
<A7 as FromRequestParts<S>>::Rejection: 'static,
A8: FromRequestParts<S> + Send + Sync + 'static,
<A8 as FromRequestParts<S>>::Rejection: 'static,
A9: FromRequestParts<S> + Send + Sync + 'static,
<A9 as FromRequestParts<S>>::Rejection: 'static,
A10: FromRequestParts<S> + Send + Sync + 'static,
<A10 as FromRequestParts<S>>::Rejection: 'static,
A11: FromRequestParts<S> + Send + Sync + 'static,
<A11 as FromRequestParts<S>>::Rejection: 'static,
A12: FromRequestParts<S> + Send + Sync + 'static,
<A12 as FromRequestParts<S>>::Rejection: 'static,
A13: FromRequestParts<S> + Send + Sync + 'static,
<A13 as FromRequestParts<S>>::Rejection: 'static,
A14: FromRequestParts<S> + Send + Sync + 'static,
<A14 as FromRequestParts<S>>::Rejection: 'static,
A15: FromRequestParts<S> + Send + Sync + 'static,
<A15 as FromRequestParts<S>>::Rejection: 'static,
Req: Message + DeserializeOwned + Default + Send + 'static,
Resp: Message + Serialize + Send + Clone + Sync + 'static,
Source§type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
The type of future calling this handler returns.
Source§fn call(self, req: Request, state: S) -> Self::Future
fn call(self, req: Request, state: S) -> Self::Future
Call the handler with the given request.
Source§fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
Apply a
tower::Layer to the handler. Read moreSource§fn with_state(self, state: S) -> HandlerService<Self, T, S>
fn with_state(self, state: S) -> HandlerService<Self, T, S>
Convert the handler into a
Service by providing the stateSource§impl<F, Fut, S, Req, Resp, St, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15> Handler<(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, ConnectRequest<Streaming<Req>>, StreamBody<St>), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, ConnectRequest<Streaming<Req>>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<StreamBody<St>>, ConnectError>> + Send + 'static,
St: Stream<Item = Result<Resp, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
A3: FromRequestParts<S> + Send + Sync + 'static,
<A3 as FromRequestParts<S>>::Rejection: 'static,
A4: FromRequestParts<S> + Send + Sync + 'static,
<A4 as FromRequestParts<S>>::Rejection: 'static,
A5: FromRequestParts<S> + Send + Sync + 'static,
<A5 as FromRequestParts<S>>::Rejection: 'static,
A6: FromRequestParts<S> + Send + Sync + 'static,
<A6 as FromRequestParts<S>>::Rejection: 'static,
A7: FromRequestParts<S> + Send + Sync + 'static,
<A7 as FromRequestParts<S>>::Rejection: 'static,
A8: FromRequestParts<S> + Send + Sync + 'static,
<A8 as FromRequestParts<S>>::Rejection: 'static,
A9: FromRequestParts<S> + Send + Sync + 'static,
<A9 as FromRequestParts<S>>::Rejection: 'static,
A10: FromRequestParts<S> + Send + Sync + 'static,
<A10 as FromRequestParts<S>>::Rejection: 'static,
A11: FromRequestParts<S> + Send + Sync + 'static,
<A11 as FromRequestParts<S>>::Rejection: 'static,
A12: FromRequestParts<S> + Send + Sync + 'static,
<A12 as FromRequestParts<S>>::Rejection: 'static,
A13: FromRequestParts<S> + Send + Sync + 'static,
<A13 as FromRequestParts<S>>::Rejection: 'static,
A14: FromRequestParts<S> + Send + Sync + 'static,
<A14 as FromRequestParts<S>>::Rejection: 'static,
A15: FromRequestParts<S> + Send + Sync + 'static,
<A15 as FromRequestParts<S>>::Rejection: 'static,
Req: Message + DeserializeOwned + Default + Send + 'static,
Resp: Message + Serialize + Send + Sync + 'static,
impl<F, Fut, S, Req, Resp, St, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15> Handler<(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, ConnectRequest<Streaming<Req>>, StreamBody<St>), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, ConnectRequest<Streaming<Req>>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<StreamBody<St>>, ConnectError>> + Send + 'static,
St: Stream<Item = Result<Resp, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
A3: FromRequestParts<S> + Send + Sync + 'static,
<A3 as FromRequestParts<S>>::Rejection: 'static,
A4: FromRequestParts<S> + Send + Sync + 'static,
<A4 as FromRequestParts<S>>::Rejection: 'static,
A5: FromRequestParts<S> + Send + Sync + 'static,
<A5 as FromRequestParts<S>>::Rejection: 'static,
A6: FromRequestParts<S> + Send + Sync + 'static,
<A6 as FromRequestParts<S>>::Rejection: 'static,
A7: FromRequestParts<S> + Send + Sync + 'static,
<A7 as FromRequestParts<S>>::Rejection: 'static,
A8: FromRequestParts<S> + Send + Sync + 'static,
<A8 as FromRequestParts<S>>::Rejection: 'static,
A9: FromRequestParts<S> + Send + Sync + 'static,
<A9 as FromRequestParts<S>>::Rejection: 'static,
A10: FromRequestParts<S> + Send + Sync + 'static,
<A10 as FromRequestParts<S>>::Rejection: 'static,
A11: FromRequestParts<S> + Send + Sync + 'static,
<A11 as FromRequestParts<S>>::Rejection: 'static,
A12: FromRequestParts<S> + Send + Sync + 'static,
<A12 as FromRequestParts<S>>::Rejection: 'static,
A13: FromRequestParts<S> + Send + Sync + 'static,
<A13 as FromRequestParts<S>>::Rejection: 'static,
A14: FromRequestParts<S> + Send + Sync + 'static,
<A14 as FromRequestParts<S>>::Rejection: 'static,
A15: FromRequestParts<S> + Send + Sync + 'static,
<A15 as FromRequestParts<S>>::Rejection: 'static,
Req: Message + DeserializeOwned + Default + Send + 'static,
Resp: Message + Serialize + Send + Sync + 'static,
Source§type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
The type of future calling this handler returns.
Source§fn call(self, req: Request, state: S) -> Self::Future
fn call(self, req: Request, state: S) -> Self::Future
Call the handler with the given request.
Source§fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
Apply a
tower::Layer to the handler. Read moreSource§fn with_state(self, state: S) -> HandlerService<Self, T, S>
fn with_state(self, state: S) -> HandlerService<Self, T, S>
Convert the handler into a
Service by providing the stateSource§impl<F, Fut, S, Req, Resp, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14> Handler<(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, ConnectRequest<Req>), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, ConnectRequest<Req>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<Resp>, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
A3: FromRequestParts<S> + Send + Sync + 'static,
<A3 as FromRequestParts<S>>::Rejection: 'static,
A4: FromRequestParts<S> + Send + Sync + 'static,
<A4 as FromRequestParts<S>>::Rejection: 'static,
A5: FromRequestParts<S> + Send + Sync + 'static,
<A5 as FromRequestParts<S>>::Rejection: 'static,
A6: FromRequestParts<S> + Send + Sync + 'static,
<A6 as FromRequestParts<S>>::Rejection: 'static,
A7: FromRequestParts<S> + Send + Sync + 'static,
<A7 as FromRequestParts<S>>::Rejection: 'static,
A8: FromRequestParts<S> + Send + Sync + 'static,
<A8 as FromRequestParts<S>>::Rejection: 'static,
A9: FromRequestParts<S> + Send + Sync + 'static,
<A9 as FromRequestParts<S>>::Rejection: 'static,
A10: FromRequestParts<S> + Send + Sync + 'static,
<A10 as FromRequestParts<S>>::Rejection: 'static,
A11: FromRequestParts<S> + Send + Sync + 'static,
<A11 as FromRequestParts<S>>::Rejection: 'static,
A12: FromRequestParts<S> + Send + Sync + 'static,
<A12 as FromRequestParts<S>>::Rejection: 'static,
A13: FromRequestParts<S> + Send + Sync + 'static,
<A13 as FromRequestParts<S>>::Rejection: 'static,
A14: FromRequestParts<S> + Send + Sync + 'static,
<A14 as FromRequestParts<S>>::Rejection: 'static,
ConnectRequest<Req>: FromRequest<S>,
Req: Send + Sync + 'static,
Resp: Message + Serialize + Send + Clone + Sync + 'static,
impl<F, Fut, S, Req, Resp, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14> Handler<(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, ConnectRequest<Req>), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, ConnectRequest<Req>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<Resp>, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
A3: FromRequestParts<S> + Send + Sync + 'static,
<A3 as FromRequestParts<S>>::Rejection: 'static,
A4: FromRequestParts<S> + Send + Sync + 'static,
<A4 as FromRequestParts<S>>::Rejection: 'static,
A5: FromRequestParts<S> + Send + Sync + 'static,
<A5 as FromRequestParts<S>>::Rejection: 'static,
A6: FromRequestParts<S> + Send + Sync + 'static,
<A6 as FromRequestParts<S>>::Rejection: 'static,
A7: FromRequestParts<S> + Send + Sync + 'static,
<A7 as FromRequestParts<S>>::Rejection: 'static,
A8: FromRequestParts<S> + Send + Sync + 'static,
<A8 as FromRequestParts<S>>::Rejection: 'static,
A9: FromRequestParts<S> + Send + Sync + 'static,
<A9 as FromRequestParts<S>>::Rejection: 'static,
A10: FromRequestParts<S> + Send + Sync + 'static,
<A10 as FromRequestParts<S>>::Rejection: 'static,
A11: FromRequestParts<S> + Send + Sync + 'static,
<A11 as FromRequestParts<S>>::Rejection: 'static,
A12: FromRequestParts<S> + Send + Sync + 'static,
<A12 as FromRequestParts<S>>::Rejection: 'static,
A13: FromRequestParts<S> + Send + Sync + 'static,
<A13 as FromRequestParts<S>>::Rejection: 'static,
A14: FromRequestParts<S> + Send + Sync + 'static,
<A14 as FromRequestParts<S>>::Rejection: 'static,
ConnectRequest<Req>: FromRequest<S>,
Req: Send + Sync + 'static,
Resp: Message + Serialize + Send + Clone + Sync + 'static,
Source§type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
The type of future calling this handler returns.
Source§fn call(self, req: Request, state: S) -> Self::Future
fn call(self, req: Request, state: S) -> Self::Future
Call the handler with the given request.
Source§fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
Apply a
tower::Layer to the handler. Read moreSource§fn with_state(self, state: S) -> HandlerService<Self, T, S>
fn with_state(self, state: S) -> HandlerService<Self, T, S>
Convert the handler into a
Service by providing the stateSource§impl<F, Fut, S, Req, Resp, St, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14> Handler<(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, ConnectRequest<Req>, StreamBody<St>), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, ConnectRequest<Req>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<StreamBody<St>>, ConnectError>> + Send + 'static,
St: Stream<Item = Result<Resp, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
A3: FromRequestParts<S> + Send + Sync + 'static,
<A3 as FromRequestParts<S>>::Rejection: 'static,
A4: FromRequestParts<S> + Send + Sync + 'static,
<A4 as FromRequestParts<S>>::Rejection: 'static,
A5: FromRequestParts<S> + Send + Sync + 'static,
<A5 as FromRequestParts<S>>::Rejection: 'static,
A6: FromRequestParts<S> + Send + Sync + 'static,
<A6 as FromRequestParts<S>>::Rejection: 'static,
A7: FromRequestParts<S> + Send + Sync + 'static,
<A7 as FromRequestParts<S>>::Rejection: 'static,
A8: FromRequestParts<S> + Send + Sync + 'static,
<A8 as FromRequestParts<S>>::Rejection: 'static,
A9: FromRequestParts<S> + Send + Sync + 'static,
<A9 as FromRequestParts<S>>::Rejection: 'static,
A10: FromRequestParts<S> + Send + Sync + 'static,
<A10 as FromRequestParts<S>>::Rejection: 'static,
A11: FromRequestParts<S> + Send + Sync + 'static,
<A11 as FromRequestParts<S>>::Rejection: 'static,
A12: FromRequestParts<S> + Send + Sync + 'static,
<A12 as FromRequestParts<S>>::Rejection: 'static,
A13: FromRequestParts<S> + Send + Sync + 'static,
<A13 as FromRequestParts<S>>::Rejection: 'static,
A14: FromRequestParts<S> + Send + Sync + 'static,
<A14 as FromRequestParts<S>>::Rejection: 'static,
Req: Message + DeserializeOwned + Default + Send + Sync + 'static,
Resp: Message + Serialize + Send + Sync + 'static,
impl<F, Fut, S, Req, Resp, St, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14> Handler<(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, ConnectRequest<Req>, StreamBody<St>), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, ConnectRequest<Req>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<StreamBody<St>>, ConnectError>> + Send + 'static,
St: Stream<Item = Result<Resp, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
A3: FromRequestParts<S> + Send + Sync + 'static,
<A3 as FromRequestParts<S>>::Rejection: 'static,
A4: FromRequestParts<S> + Send + Sync + 'static,
<A4 as FromRequestParts<S>>::Rejection: 'static,
A5: FromRequestParts<S> + Send + Sync + 'static,
<A5 as FromRequestParts<S>>::Rejection: 'static,
A6: FromRequestParts<S> + Send + Sync + 'static,
<A6 as FromRequestParts<S>>::Rejection: 'static,
A7: FromRequestParts<S> + Send + Sync + 'static,
<A7 as FromRequestParts<S>>::Rejection: 'static,
A8: FromRequestParts<S> + Send + Sync + 'static,
<A8 as FromRequestParts<S>>::Rejection: 'static,
A9: FromRequestParts<S> + Send + Sync + 'static,
<A9 as FromRequestParts<S>>::Rejection: 'static,
A10: FromRequestParts<S> + Send + Sync + 'static,
<A10 as FromRequestParts<S>>::Rejection: 'static,
A11: FromRequestParts<S> + Send + Sync + 'static,
<A11 as FromRequestParts<S>>::Rejection: 'static,
A12: FromRequestParts<S> + Send + Sync + 'static,
<A12 as FromRequestParts<S>>::Rejection: 'static,
A13: FromRequestParts<S> + Send + Sync + 'static,
<A13 as FromRequestParts<S>>::Rejection: 'static,
A14: FromRequestParts<S> + Send + Sync + 'static,
<A14 as FromRequestParts<S>>::Rejection: 'static,
Req: Message + DeserializeOwned + Default + Send + Sync + 'static,
Resp: Message + Serialize + Send + Sync + 'static,
Source§type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
The type of future calling this handler returns.
Source§fn call(self, req: Request, state: S) -> Self::Future
fn call(self, req: Request, state: S) -> Self::Future
Call the handler with the given request.
Source§fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
Apply a
tower::Layer to the handler. Read moreSource§fn with_state(self, state: S) -> HandlerService<Self, T, S>
fn with_state(self, state: S) -> HandlerService<Self, T, S>
Convert the handler into a
Service by providing the stateSource§impl<F, Fut, S, Req, Resp, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14> Handler<(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, ConnectRequest<Streaming<Req>>, Resp), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, ConnectRequest<Streaming<Req>>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<Resp>, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
A3: FromRequestParts<S> + Send + Sync + 'static,
<A3 as FromRequestParts<S>>::Rejection: 'static,
A4: FromRequestParts<S> + Send + Sync + 'static,
<A4 as FromRequestParts<S>>::Rejection: 'static,
A5: FromRequestParts<S> + Send + Sync + 'static,
<A5 as FromRequestParts<S>>::Rejection: 'static,
A6: FromRequestParts<S> + Send + Sync + 'static,
<A6 as FromRequestParts<S>>::Rejection: 'static,
A7: FromRequestParts<S> + Send + Sync + 'static,
<A7 as FromRequestParts<S>>::Rejection: 'static,
A8: FromRequestParts<S> + Send + Sync + 'static,
<A8 as FromRequestParts<S>>::Rejection: 'static,
A9: FromRequestParts<S> + Send + Sync + 'static,
<A9 as FromRequestParts<S>>::Rejection: 'static,
A10: FromRequestParts<S> + Send + Sync + 'static,
<A10 as FromRequestParts<S>>::Rejection: 'static,
A11: FromRequestParts<S> + Send + Sync + 'static,
<A11 as FromRequestParts<S>>::Rejection: 'static,
A12: FromRequestParts<S> + Send + Sync + 'static,
<A12 as FromRequestParts<S>>::Rejection: 'static,
A13: FromRequestParts<S> + Send + Sync + 'static,
<A13 as FromRequestParts<S>>::Rejection: 'static,
A14: FromRequestParts<S> + Send + Sync + 'static,
<A14 as FromRequestParts<S>>::Rejection: 'static,
Req: Message + DeserializeOwned + Default + Send + 'static,
Resp: Message + Serialize + Send + Clone + Sync + 'static,
impl<F, Fut, S, Req, Resp, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14> Handler<(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, ConnectRequest<Streaming<Req>>, Resp), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, ConnectRequest<Streaming<Req>>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<Resp>, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
A3: FromRequestParts<S> + Send + Sync + 'static,
<A3 as FromRequestParts<S>>::Rejection: 'static,
A4: FromRequestParts<S> + Send + Sync + 'static,
<A4 as FromRequestParts<S>>::Rejection: 'static,
A5: FromRequestParts<S> + Send + Sync + 'static,
<A5 as FromRequestParts<S>>::Rejection: 'static,
A6: FromRequestParts<S> + Send + Sync + 'static,
<A6 as FromRequestParts<S>>::Rejection: 'static,
A7: FromRequestParts<S> + Send + Sync + 'static,
<A7 as FromRequestParts<S>>::Rejection: 'static,
A8: FromRequestParts<S> + Send + Sync + 'static,
<A8 as FromRequestParts<S>>::Rejection: 'static,
A9: FromRequestParts<S> + Send + Sync + 'static,
<A9 as FromRequestParts<S>>::Rejection: 'static,
A10: FromRequestParts<S> + Send + Sync + 'static,
<A10 as FromRequestParts<S>>::Rejection: 'static,
A11: FromRequestParts<S> + Send + Sync + 'static,
<A11 as FromRequestParts<S>>::Rejection: 'static,
A12: FromRequestParts<S> + Send + Sync + 'static,
<A12 as FromRequestParts<S>>::Rejection: 'static,
A13: FromRequestParts<S> + Send + Sync + 'static,
<A13 as FromRequestParts<S>>::Rejection: 'static,
A14: FromRequestParts<S> + Send + Sync + 'static,
<A14 as FromRequestParts<S>>::Rejection: 'static,
Req: Message + DeserializeOwned + Default + Send + 'static,
Resp: Message + Serialize + Send + Clone + Sync + 'static,
Source§type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
The type of future calling this handler returns.
Source§fn call(self, req: Request, state: S) -> Self::Future
fn call(self, req: Request, state: S) -> Self::Future
Call the handler with the given request.
Source§fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
Apply a
tower::Layer to the handler. Read moreSource§fn with_state(self, state: S) -> HandlerService<Self, T, S>
fn with_state(self, state: S) -> HandlerService<Self, T, S>
Convert the handler into a
Service by providing the stateSource§impl<F, Fut, S, Req, Resp, St, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14> Handler<(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, ConnectRequest<Streaming<Req>>, StreamBody<St>), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, ConnectRequest<Streaming<Req>>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<StreamBody<St>>, ConnectError>> + Send + 'static,
St: Stream<Item = Result<Resp, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
A3: FromRequestParts<S> + Send + Sync + 'static,
<A3 as FromRequestParts<S>>::Rejection: 'static,
A4: FromRequestParts<S> + Send + Sync + 'static,
<A4 as FromRequestParts<S>>::Rejection: 'static,
A5: FromRequestParts<S> + Send + Sync + 'static,
<A5 as FromRequestParts<S>>::Rejection: 'static,
A6: FromRequestParts<S> + Send + Sync + 'static,
<A6 as FromRequestParts<S>>::Rejection: 'static,
A7: FromRequestParts<S> + Send + Sync + 'static,
<A7 as FromRequestParts<S>>::Rejection: 'static,
A8: FromRequestParts<S> + Send + Sync + 'static,
<A8 as FromRequestParts<S>>::Rejection: 'static,
A9: FromRequestParts<S> + Send + Sync + 'static,
<A9 as FromRequestParts<S>>::Rejection: 'static,
A10: FromRequestParts<S> + Send + Sync + 'static,
<A10 as FromRequestParts<S>>::Rejection: 'static,
A11: FromRequestParts<S> + Send + Sync + 'static,
<A11 as FromRequestParts<S>>::Rejection: 'static,
A12: FromRequestParts<S> + Send + Sync + 'static,
<A12 as FromRequestParts<S>>::Rejection: 'static,
A13: FromRequestParts<S> + Send + Sync + 'static,
<A13 as FromRequestParts<S>>::Rejection: 'static,
A14: FromRequestParts<S> + Send + Sync + 'static,
<A14 as FromRequestParts<S>>::Rejection: 'static,
Req: Message + DeserializeOwned + Default + Send + 'static,
Resp: Message + Serialize + Send + Sync + 'static,
impl<F, Fut, S, Req, Resp, St, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14> Handler<(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, ConnectRequest<Streaming<Req>>, StreamBody<St>), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, ConnectRequest<Streaming<Req>>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<StreamBody<St>>, ConnectError>> + Send + 'static,
St: Stream<Item = Result<Resp, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
A3: FromRequestParts<S> + Send + Sync + 'static,
<A3 as FromRequestParts<S>>::Rejection: 'static,
A4: FromRequestParts<S> + Send + Sync + 'static,
<A4 as FromRequestParts<S>>::Rejection: 'static,
A5: FromRequestParts<S> + Send + Sync + 'static,
<A5 as FromRequestParts<S>>::Rejection: 'static,
A6: FromRequestParts<S> + Send + Sync + 'static,
<A6 as FromRequestParts<S>>::Rejection: 'static,
A7: FromRequestParts<S> + Send + Sync + 'static,
<A7 as FromRequestParts<S>>::Rejection: 'static,
A8: FromRequestParts<S> + Send + Sync + 'static,
<A8 as FromRequestParts<S>>::Rejection: 'static,
A9: FromRequestParts<S> + Send + Sync + 'static,
<A9 as FromRequestParts<S>>::Rejection: 'static,
A10: FromRequestParts<S> + Send + Sync + 'static,
<A10 as FromRequestParts<S>>::Rejection: 'static,
A11: FromRequestParts<S> + Send + Sync + 'static,
<A11 as FromRequestParts<S>>::Rejection: 'static,
A12: FromRequestParts<S> + Send + Sync + 'static,
<A12 as FromRequestParts<S>>::Rejection: 'static,
A13: FromRequestParts<S> + Send + Sync + 'static,
<A13 as FromRequestParts<S>>::Rejection: 'static,
A14: FromRequestParts<S> + Send + Sync + 'static,
<A14 as FromRequestParts<S>>::Rejection: 'static,
Req: Message + DeserializeOwned + Default + Send + 'static,
Resp: Message + Serialize + Send + Sync + 'static,
Source§type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
The type of future calling this handler returns.
Source§fn call(self, req: Request, state: S) -> Self::Future
fn call(self, req: Request, state: S) -> Self::Future
Call the handler with the given request.
Source§fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
Apply a
tower::Layer to the handler. Read moreSource§fn with_state(self, state: S) -> HandlerService<Self, T, S>
fn with_state(self, state: S) -> HandlerService<Self, T, S>
Convert the handler into a
Service by providing the stateSource§impl<F, Fut, S, Req, Resp, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13> Handler<(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, ConnectRequest<Req>), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, ConnectRequest<Req>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<Resp>, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
A3: FromRequestParts<S> + Send + Sync + 'static,
<A3 as FromRequestParts<S>>::Rejection: 'static,
A4: FromRequestParts<S> + Send + Sync + 'static,
<A4 as FromRequestParts<S>>::Rejection: 'static,
A5: FromRequestParts<S> + Send + Sync + 'static,
<A5 as FromRequestParts<S>>::Rejection: 'static,
A6: FromRequestParts<S> + Send + Sync + 'static,
<A6 as FromRequestParts<S>>::Rejection: 'static,
A7: FromRequestParts<S> + Send + Sync + 'static,
<A7 as FromRequestParts<S>>::Rejection: 'static,
A8: FromRequestParts<S> + Send + Sync + 'static,
<A8 as FromRequestParts<S>>::Rejection: 'static,
A9: FromRequestParts<S> + Send + Sync + 'static,
<A9 as FromRequestParts<S>>::Rejection: 'static,
A10: FromRequestParts<S> + Send + Sync + 'static,
<A10 as FromRequestParts<S>>::Rejection: 'static,
A11: FromRequestParts<S> + Send + Sync + 'static,
<A11 as FromRequestParts<S>>::Rejection: 'static,
A12: FromRequestParts<S> + Send + Sync + 'static,
<A12 as FromRequestParts<S>>::Rejection: 'static,
A13: FromRequestParts<S> + Send + Sync + 'static,
<A13 as FromRequestParts<S>>::Rejection: 'static,
ConnectRequest<Req>: FromRequest<S>,
Req: Send + Sync + 'static,
Resp: Message + Serialize + Send + Clone + Sync + 'static,
impl<F, Fut, S, Req, Resp, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13> Handler<(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, ConnectRequest<Req>), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, ConnectRequest<Req>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<Resp>, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
A3: FromRequestParts<S> + Send + Sync + 'static,
<A3 as FromRequestParts<S>>::Rejection: 'static,
A4: FromRequestParts<S> + Send + Sync + 'static,
<A4 as FromRequestParts<S>>::Rejection: 'static,
A5: FromRequestParts<S> + Send + Sync + 'static,
<A5 as FromRequestParts<S>>::Rejection: 'static,
A6: FromRequestParts<S> + Send + Sync + 'static,
<A6 as FromRequestParts<S>>::Rejection: 'static,
A7: FromRequestParts<S> + Send + Sync + 'static,
<A7 as FromRequestParts<S>>::Rejection: 'static,
A8: FromRequestParts<S> + Send + Sync + 'static,
<A8 as FromRequestParts<S>>::Rejection: 'static,
A9: FromRequestParts<S> + Send + Sync + 'static,
<A9 as FromRequestParts<S>>::Rejection: 'static,
A10: FromRequestParts<S> + Send + Sync + 'static,
<A10 as FromRequestParts<S>>::Rejection: 'static,
A11: FromRequestParts<S> + Send + Sync + 'static,
<A11 as FromRequestParts<S>>::Rejection: 'static,
A12: FromRequestParts<S> + Send + Sync + 'static,
<A12 as FromRequestParts<S>>::Rejection: 'static,
A13: FromRequestParts<S> + Send + Sync + 'static,
<A13 as FromRequestParts<S>>::Rejection: 'static,
ConnectRequest<Req>: FromRequest<S>,
Req: Send + Sync + 'static,
Resp: Message + Serialize + Send + Clone + Sync + 'static,
Source§type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
The type of future calling this handler returns.
Source§fn call(self, req: Request, state: S) -> Self::Future
fn call(self, req: Request, state: S) -> Self::Future
Call the handler with the given request.
Source§fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
Apply a
tower::Layer to the handler. Read moreSource§fn with_state(self, state: S) -> HandlerService<Self, T, S>
fn with_state(self, state: S) -> HandlerService<Self, T, S>
Convert the handler into a
Service by providing the stateSource§impl<F, Fut, S, Req, Resp, St, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13> Handler<(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, ConnectRequest<Req>, StreamBody<St>), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, ConnectRequest<Req>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<StreamBody<St>>, ConnectError>> + Send + 'static,
St: Stream<Item = Result<Resp, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
A3: FromRequestParts<S> + Send + Sync + 'static,
<A3 as FromRequestParts<S>>::Rejection: 'static,
A4: FromRequestParts<S> + Send + Sync + 'static,
<A4 as FromRequestParts<S>>::Rejection: 'static,
A5: FromRequestParts<S> + Send + Sync + 'static,
<A5 as FromRequestParts<S>>::Rejection: 'static,
A6: FromRequestParts<S> + Send + Sync + 'static,
<A6 as FromRequestParts<S>>::Rejection: 'static,
A7: FromRequestParts<S> + Send + Sync + 'static,
<A7 as FromRequestParts<S>>::Rejection: 'static,
A8: FromRequestParts<S> + Send + Sync + 'static,
<A8 as FromRequestParts<S>>::Rejection: 'static,
A9: FromRequestParts<S> + Send + Sync + 'static,
<A9 as FromRequestParts<S>>::Rejection: 'static,
A10: FromRequestParts<S> + Send + Sync + 'static,
<A10 as FromRequestParts<S>>::Rejection: 'static,
A11: FromRequestParts<S> + Send + Sync + 'static,
<A11 as FromRequestParts<S>>::Rejection: 'static,
A12: FromRequestParts<S> + Send + Sync + 'static,
<A12 as FromRequestParts<S>>::Rejection: 'static,
A13: FromRequestParts<S> + Send + Sync + 'static,
<A13 as FromRequestParts<S>>::Rejection: 'static,
Req: Message + DeserializeOwned + Default + Send + Sync + 'static,
Resp: Message + Serialize + Send + Sync + 'static,
impl<F, Fut, S, Req, Resp, St, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13> Handler<(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, ConnectRequest<Req>, StreamBody<St>), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, ConnectRequest<Req>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<StreamBody<St>>, ConnectError>> + Send + 'static,
St: Stream<Item = Result<Resp, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
A3: FromRequestParts<S> + Send + Sync + 'static,
<A3 as FromRequestParts<S>>::Rejection: 'static,
A4: FromRequestParts<S> + Send + Sync + 'static,
<A4 as FromRequestParts<S>>::Rejection: 'static,
A5: FromRequestParts<S> + Send + Sync + 'static,
<A5 as FromRequestParts<S>>::Rejection: 'static,
A6: FromRequestParts<S> + Send + Sync + 'static,
<A6 as FromRequestParts<S>>::Rejection: 'static,
A7: FromRequestParts<S> + Send + Sync + 'static,
<A7 as FromRequestParts<S>>::Rejection: 'static,
A8: FromRequestParts<S> + Send + Sync + 'static,
<A8 as FromRequestParts<S>>::Rejection: 'static,
A9: FromRequestParts<S> + Send + Sync + 'static,
<A9 as FromRequestParts<S>>::Rejection: 'static,
A10: FromRequestParts<S> + Send + Sync + 'static,
<A10 as FromRequestParts<S>>::Rejection: 'static,
A11: FromRequestParts<S> + Send + Sync + 'static,
<A11 as FromRequestParts<S>>::Rejection: 'static,
A12: FromRequestParts<S> + Send + Sync + 'static,
<A12 as FromRequestParts<S>>::Rejection: 'static,
A13: FromRequestParts<S> + Send + Sync + 'static,
<A13 as FromRequestParts<S>>::Rejection: 'static,
Req: Message + DeserializeOwned + Default + Send + Sync + 'static,
Resp: Message + Serialize + Send + Sync + 'static,
Source§type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
The type of future calling this handler returns.
Source§fn call(self, req: Request, state: S) -> Self::Future
fn call(self, req: Request, state: S) -> Self::Future
Call the handler with the given request.
Source§fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
Apply a
tower::Layer to the handler. Read moreSource§fn with_state(self, state: S) -> HandlerService<Self, T, S>
fn with_state(self, state: S) -> HandlerService<Self, T, S>
Convert the handler into a
Service by providing the stateSource§impl<F, Fut, S, Req, Resp, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13> Handler<(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, ConnectRequest<Streaming<Req>>, Resp), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, ConnectRequest<Streaming<Req>>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<Resp>, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
A3: FromRequestParts<S> + Send + Sync + 'static,
<A3 as FromRequestParts<S>>::Rejection: 'static,
A4: FromRequestParts<S> + Send + Sync + 'static,
<A4 as FromRequestParts<S>>::Rejection: 'static,
A5: FromRequestParts<S> + Send + Sync + 'static,
<A5 as FromRequestParts<S>>::Rejection: 'static,
A6: FromRequestParts<S> + Send + Sync + 'static,
<A6 as FromRequestParts<S>>::Rejection: 'static,
A7: FromRequestParts<S> + Send + Sync + 'static,
<A7 as FromRequestParts<S>>::Rejection: 'static,
A8: FromRequestParts<S> + Send + Sync + 'static,
<A8 as FromRequestParts<S>>::Rejection: 'static,
A9: FromRequestParts<S> + Send + Sync + 'static,
<A9 as FromRequestParts<S>>::Rejection: 'static,
A10: FromRequestParts<S> + Send + Sync + 'static,
<A10 as FromRequestParts<S>>::Rejection: 'static,
A11: FromRequestParts<S> + Send + Sync + 'static,
<A11 as FromRequestParts<S>>::Rejection: 'static,
A12: FromRequestParts<S> + Send + Sync + 'static,
<A12 as FromRequestParts<S>>::Rejection: 'static,
A13: FromRequestParts<S> + Send + Sync + 'static,
<A13 as FromRequestParts<S>>::Rejection: 'static,
Req: Message + DeserializeOwned + Default + Send + 'static,
Resp: Message + Serialize + Send + Clone + Sync + 'static,
impl<F, Fut, S, Req, Resp, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13> Handler<(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, ConnectRequest<Streaming<Req>>, Resp), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, ConnectRequest<Streaming<Req>>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<Resp>, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
A3: FromRequestParts<S> + Send + Sync + 'static,
<A3 as FromRequestParts<S>>::Rejection: 'static,
A4: FromRequestParts<S> + Send + Sync + 'static,
<A4 as FromRequestParts<S>>::Rejection: 'static,
A5: FromRequestParts<S> + Send + Sync + 'static,
<A5 as FromRequestParts<S>>::Rejection: 'static,
A6: FromRequestParts<S> + Send + Sync + 'static,
<A6 as FromRequestParts<S>>::Rejection: 'static,
A7: FromRequestParts<S> + Send + Sync + 'static,
<A7 as FromRequestParts<S>>::Rejection: 'static,
A8: FromRequestParts<S> + Send + Sync + 'static,
<A8 as FromRequestParts<S>>::Rejection: 'static,
A9: FromRequestParts<S> + Send + Sync + 'static,
<A9 as FromRequestParts<S>>::Rejection: 'static,
A10: FromRequestParts<S> + Send + Sync + 'static,
<A10 as FromRequestParts<S>>::Rejection: 'static,
A11: FromRequestParts<S> + Send + Sync + 'static,
<A11 as FromRequestParts<S>>::Rejection: 'static,
A12: FromRequestParts<S> + Send + Sync + 'static,
<A12 as FromRequestParts<S>>::Rejection: 'static,
A13: FromRequestParts<S> + Send + Sync + 'static,
<A13 as FromRequestParts<S>>::Rejection: 'static,
Req: Message + DeserializeOwned + Default + Send + 'static,
Resp: Message + Serialize + Send + Clone + Sync + 'static,
Source§type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
The type of future calling this handler returns.
Source§fn call(self, req: Request, state: S) -> Self::Future
fn call(self, req: Request, state: S) -> Self::Future
Call the handler with the given request.
Source§fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
Apply a
tower::Layer to the handler. Read moreSource§fn with_state(self, state: S) -> HandlerService<Self, T, S>
fn with_state(self, state: S) -> HandlerService<Self, T, S>
Convert the handler into a
Service by providing the stateSource§impl<F, Fut, S, Req, Resp, St, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13> Handler<(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, ConnectRequest<Streaming<Req>>, StreamBody<St>), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, ConnectRequest<Streaming<Req>>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<StreamBody<St>>, ConnectError>> + Send + 'static,
St: Stream<Item = Result<Resp, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
A3: FromRequestParts<S> + Send + Sync + 'static,
<A3 as FromRequestParts<S>>::Rejection: 'static,
A4: FromRequestParts<S> + Send + Sync + 'static,
<A4 as FromRequestParts<S>>::Rejection: 'static,
A5: FromRequestParts<S> + Send + Sync + 'static,
<A5 as FromRequestParts<S>>::Rejection: 'static,
A6: FromRequestParts<S> + Send + Sync + 'static,
<A6 as FromRequestParts<S>>::Rejection: 'static,
A7: FromRequestParts<S> + Send + Sync + 'static,
<A7 as FromRequestParts<S>>::Rejection: 'static,
A8: FromRequestParts<S> + Send + Sync + 'static,
<A8 as FromRequestParts<S>>::Rejection: 'static,
A9: FromRequestParts<S> + Send + Sync + 'static,
<A9 as FromRequestParts<S>>::Rejection: 'static,
A10: FromRequestParts<S> + Send + Sync + 'static,
<A10 as FromRequestParts<S>>::Rejection: 'static,
A11: FromRequestParts<S> + Send + Sync + 'static,
<A11 as FromRequestParts<S>>::Rejection: 'static,
A12: FromRequestParts<S> + Send + Sync + 'static,
<A12 as FromRequestParts<S>>::Rejection: 'static,
A13: FromRequestParts<S> + Send + Sync + 'static,
<A13 as FromRequestParts<S>>::Rejection: 'static,
Req: Message + DeserializeOwned + Default + Send + 'static,
Resp: Message + Serialize + Send + Sync + 'static,
impl<F, Fut, S, Req, Resp, St, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13> Handler<(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, ConnectRequest<Streaming<Req>>, StreamBody<St>), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, ConnectRequest<Streaming<Req>>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<StreamBody<St>>, ConnectError>> + Send + 'static,
St: Stream<Item = Result<Resp, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
A3: FromRequestParts<S> + Send + Sync + 'static,
<A3 as FromRequestParts<S>>::Rejection: 'static,
A4: FromRequestParts<S> + Send + Sync + 'static,
<A4 as FromRequestParts<S>>::Rejection: 'static,
A5: FromRequestParts<S> + Send + Sync + 'static,
<A5 as FromRequestParts<S>>::Rejection: 'static,
A6: FromRequestParts<S> + Send + Sync + 'static,
<A6 as FromRequestParts<S>>::Rejection: 'static,
A7: FromRequestParts<S> + Send + Sync + 'static,
<A7 as FromRequestParts<S>>::Rejection: 'static,
A8: FromRequestParts<S> + Send + Sync + 'static,
<A8 as FromRequestParts<S>>::Rejection: 'static,
A9: FromRequestParts<S> + Send + Sync + 'static,
<A9 as FromRequestParts<S>>::Rejection: 'static,
A10: FromRequestParts<S> + Send + Sync + 'static,
<A10 as FromRequestParts<S>>::Rejection: 'static,
A11: FromRequestParts<S> + Send + Sync + 'static,
<A11 as FromRequestParts<S>>::Rejection: 'static,
A12: FromRequestParts<S> + Send + Sync + 'static,
<A12 as FromRequestParts<S>>::Rejection: 'static,
A13: FromRequestParts<S> + Send + Sync + 'static,
<A13 as FromRequestParts<S>>::Rejection: 'static,
Req: Message + DeserializeOwned + Default + Send + 'static,
Resp: Message + Serialize + Send + Sync + 'static,
Source§type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
The type of future calling this handler returns.
Source§fn call(self, req: Request, state: S) -> Self::Future
fn call(self, req: Request, state: S) -> Self::Future
Call the handler with the given request.
Source§fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
Apply a
tower::Layer to the handler. Read moreSource§fn with_state(self, state: S) -> HandlerService<Self, T, S>
fn with_state(self, state: S) -> HandlerService<Self, T, S>
Convert the handler into a
Service by providing the stateSource§impl<F, Fut, S, Req, Resp, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12> Handler<(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, ConnectRequest<Req>), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, ConnectRequest<Req>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<Resp>, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
A3: FromRequestParts<S> + Send + Sync + 'static,
<A3 as FromRequestParts<S>>::Rejection: 'static,
A4: FromRequestParts<S> + Send + Sync + 'static,
<A4 as FromRequestParts<S>>::Rejection: 'static,
A5: FromRequestParts<S> + Send + Sync + 'static,
<A5 as FromRequestParts<S>>::Rejection: 'static,
A6: FromRequestParts<S> + Send + Sync + 'static,
<A6 as FromRequestParts<S>>::Rejection: 'static,
A7: FromRequestParts<S> + Send + Sync + 'static,
<A7 as FromRequestParts<S>>::Rejection: 'static,
A8: FromRequestParts<S> + Send + Sync + 'static,
<A8 as FromRequestParts<S>>::Rejection: 'static,
A9: FromRequestParts<S> + Send + Sync + 'static,
<A9 as FromRequestParts<S>>::Rejection: 'static,
A10: FromRequestParts<S> + Send + Sync + 'static,
<A10 as FromRequestParts<S>>::Rejection: 'static,
A11: FromRequestParts<S> + Send + Sync + 'static,
<A11 as FromRequestParts<S>>::Rejection: 'static,
A12: FromRequestParts<S> + Send + Sync + 'static,
<A12 as FromRequestParts<S>>::Rejection: 'static,
ConnectRequest<Req>: FromRequest<S>,
Req: Send + Sync + 'static,
Resp: Message + Serialize + Send + Clone + Sync + 'static,
impl<F, Fut, S, Req, Resp, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12> Handler<(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, ConnectRequest<Req>), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, ConnectRequest<Req>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<Resp>, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
A3: FromRequestParts<S> + Send + Sync + 'static,
<A3 as FromRequestParts<S>>::Rejection: 'static,
A4: FromRequestParts<S> + Send + Sync + 'static,
<A4 as FromRequestParts<S>>::Rejection: 'static,
A5: FromRequestParts<S> + Send + Sync + 'static,
<A5 as FromRequestParts<S>>::Rejection: 'static,
A6: FromRequestParts<S> + Send + Sync + 'static,
<A6 as FromRequestParts<S>>::Rejection: 'static,
A7: FromRequestParts<S> + Send + Sync + 'static,
<A7 as FromRequestParts<S>>::Rejection: 'static,
A8: FromRequestParts<S> + Send + Sync + 'static,
<A8 as FromRequestParts<S>>::Rejection: 'static,
A9: FromRequestParts<S> + Send + Sync + 'static,
<A9 as FromRequestParts<S>>::Rejection: 'static,
A10: FromRequestParts<S> + Send + Sync + 'static,
<A10 as FromRequestParts<S>>::Rejection: 'static,
A11: FromRequestParts<S> + Send + Sync + 'static,
<A11 as FromRequestParts<S>>::Rejection: 'static,
A12: FromRequestParts<S> + Send + Sync + 'static,
<A12 as FromRequestParts<S>>::Rejection: 'static,
ConnectRequest<Req>: FromRequest<S>,
Req: Send + Sync + 'static,
Resp: Message + Serialize + Send + Clone + Sync + 'static,
Source§type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
The type of future calling this handler returns.
Source§fn call(self, req: Request, state: S) -> Self::Future
fn call(self, req: Request, state: S) -> Self::Future
Call the handler with the given request.
Source§fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
Apply a
tower::Layer to the handler. Read moreSource§fn with_state(self, state: S) -> HandlerService<Self, T, S>
fn with_state(self, state: S) -> HandlerService<Self, T, S>
Convert the handler into a
Service by providing the stateSource§impl<F, Fut, S, Req, Resp, St, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12> Handler<(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, ConnectRequest<Req>, StreamBody<St>), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, ConnectRequest<Req>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<StreamBody<St>>, ConnectError>> + Send + 'static,
St: Stream<Item = Result<Resp, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
A3: FromRequestParts<S> + Send + Sync + 'static,
<A3 as FromRequestParts<S>>::Rejection: 'static,
A4: FromRequestParts<S> + Send + Sync + 'static,
<A4 as FromRequestParts<S>>::Rejection: 'static,
A5: FromRequestParts<S> + Send + Sync + 'static,
<A5 as FromRequestParts<S>>::Rejection: 'static,
A6: FromRequestParts<S> + Send + Sync + 'static,
<A6 as FromRequestParts<S>>::Rejection: 'static,
A7: FromRequestParts<S> + Send + Sync + 'static,
<A7 as FromRequestParts<S>>::Rejection: 'static,
A8: FromRequestParts<S> + Send + Sync + 'static,
<A8 as FromRequestParts<S>>::Rejection: 'static,
A9: FromRequestParts<S> + Send + Sync + 'static,
<A9 as FromRequestParts<S>>::Rejection: 'static,
A10: FromRequestParts<S> + Send + Sync + 'static,
<A10 as FromRequestParts<S>>::Rejection: 'static,
A11: FromRequestParts<S> + Send + Sync + 'static,
<A11 as FromRequestParts<S>>::Rejection: 'static,
A12: FromRequestParts<S> + Send + Sync + 'static,
<A12 as FromRequestParts<S>>::Rejection: 'static,
Req: Message + DeserializeOwned + Default + Send + Sync + 'static,
Resp: Message + Serialize + Send + Sync + 'static,
impl<F, Fut, S, Req, Resp, St, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12> Handler<(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, ConnectRequest<Req>, StreamBody<St>), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, ConnectRequest<Req>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<StreamBody<St>>, ConnectError>> + Send + 'static,
St: Stream<Item = Result<Resp, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
A3: FromRequestParts<S> + Send + Sync + 'static,
<A3 as FromRequestParts<S>>::Rejection: 'static,
A4: FromRequestParts<S> + Send + Sync + 'static,
<A4 as FromRequestParts<S>>::Rejection: 'static,
A5: FromRequestParts<S> + Send + Sync + 'static,
<A5 as FromRequestParts<S>>::Rejection: 'static,
A6: FromRequestParts<S> + Send + Sync + 'static,
<A6 as FromRequestParts<S>>::Rejection: 'static,
A7: FromRequestParts<S> + Send + Sync + 'static,
<A7 as FromRequestParts<S>>::Rejection: 'static,
A8: FromRequestParts<S> + Send + Sync + 'static,
<A8 as FromRequestParts<S>>::Rejection: 'static,
A9: FromRequestParts<S> + Send + Sync + 'static,
<A9 as FromRequestParts<S>>::Rejection: 'static,
A10: FromRequestParts<S> + Send + Sync + 'static,
<A10 as FromRequestParts<S>>::Rejection: 'static,
A11: FromRequestParts<S> + Send + Sync + 'static,
<A11 as FromRequestParts<S>>::Rejection: 'static,
A12: FromRequestParts<S> + Send + Sync + 'static,
<A12 as FromRequestParts<S>>::Rejection: 'static,
Req: Message + DeserializeOwned + Default + Send + Sync + 'static,
Resp: Message + Serialize + Send + Sync + 'static,
Source§type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
The type of future calling this handler returns.
Source§fn call(self, req: Request, state: S) -> Self::Future
fn call(self, req: Request, state: S) -> Self::Future
Call the handler with the given request.
Source§fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
Apply a
tower::Layer to the handler. Read moreSource§fn with_state(self, state: S) -> HandlerService<Self, T, S>
fn with_state(self, state: S) -> HandlerService<Self, T, S>
Convert the handler into a
Service by providing the stateSource§impl<F, Fut, S, Req, Resp, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12> Handler<(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, ConnectRequest<Streaming<Req>>, Resp), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, ConnectRequest<Streaming<Req>>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<Resp>, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
A3: FromRequestParts<S> + Send + Sync + 'static,
<A3 as FromRequestParts<S>>::Rejection: 'static,
A4: FromRequestParts<S> + Send + Sync + 'static,
<A4 as FromRequestParts<S>>::Rejection: 'static,
A5: FromRequestParts<S> + Send + Sync + 'static,
<A5 as FromRequestParts<S>>::Rejection: 'static,
A6: FromRequestParts<S> + Send + Sync + 'static,
<A6 as FromRequestParts<S>>::Rejection: 'static,
A7: FromRequestParts<S> + Send + Sync + 'static,
<A7 as FromRequestParts<S>>::Rejection: 'static,
A8: FromRequestParts<S> + Send + Sync + 'static,
<A8 as FromRequestParts<S>>::Rejection: 'static,
A9: FromRequestParts<S> + Send + Sync + 'static,
<A9 as FromRequestParts<S>>::Rejection: 'static,
A10: FromRequestParts<S> + Send + Sync + 'static,
<A10 as FromRequestParts<S>>::Rejection: 'static,
A11: FromRequestParts<S> + Send + Sync + 'static,
<A11 as FromRequestParts<S>>::Rejection: 'static,
A12: FromRequestParts<S> + Send + Sync + 'static,
<A12 as FromRequestParts<S>>::Rejection: 'static,
Req: Message + DeserializeOwned + Default + Send + 'static,
Resp: Message + Serialize + Send + Clone + Sync + 'static,
impl<F, Fut, S, Req, Resp, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12> Handler<(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, ConnectRequest<Streaming<Req>>, Resp), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, ConnectRequest<Streaming<Req>>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<Resp>, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
A3: FromRequestParts<S> + Send + Sync + 'static,
<A3 as FromRequestParts<S>>::Rejection: 'static,
A4: FromRequestParts<S> + Send + Sync + 'static,
<A4 as FromRequestParts<S>>::Rejection: 'static,
A5: FromRequestParts<S> + Send + Sync + 'static,
<A5 as FromRequestParts<S>>::Rejection: 'static,
A6: FromRequestParts<S> + Send + Sync + 'static,
<A6 as FromRequestParts<S>>::Rejection: 'static,
A7: FromRequestParts<S> + Send + Sync + 'static,
<A7 as FromRequestParts<S>>::Rejection: 'static,
A8: FromRequestParts<S> + Send + Sync + 'static,
<A8 as FromRequestParts<S>>::Rejection: 'static,
A9: FromRequestParts<S> + Send + Sync + 'static,
<A9 as FromRequestParts<S>>::Rejection: 'static,
A10: FromRequestParts<S> + Send + Sync + 'static,
<A10 as FromRequestParts<S>>::Rejection: 'static,
A11: FromRequestParts<S> + Send + Sync + 'static,
<A11 as FromRequestParts<S>>::Rejection: 'static,
A12: FromRequestParts<S> + Send + Sync + 'static,
<A12 as FromRequestParts<S>>::Rejection: 'static,
Req: Message + DeserializeOwned + Default + Send + 'static,
Resp: Message + Serialize + Send + Clone + Sync + 'static,
Source§type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
The type of future calling this handler returns.
Source§fn call(self, req: Request, state: S) -> Self::Future
fn call(self, req: Request, state: S) -> Self::Future
Call the handler with the given request.
Source§fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
Apply a
tower::Layer to the handler. Read moreSource§fn with_state(self, state: S) -> HandlerService<Self, T, S>
fn with_state(self, state: S) -> HandlerService<Self, T, S>
Convert the handler into a
Service by providing the stateSource§impl<F, Fut, S, Req, Resp, St, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12> Handler<(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, ConnectRequest<Streaming<Req>>, StreamBody<St>), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, ConnectRequest<Streaming<Req>>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<StreamBody<St>>, ConnectError>> + Send + 'static,
St: Stream<Item = Result<Resp, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
A3: FromRequestParts<S> + Send + Sync + 'static,
<A3 as FromRequestParts<S>>::Rejection: 'static,
A4: FromRequestParts<S> + Send + Sync + 'static,
<A4 as FromRequestParts<S>>::Rejection: 'static,
A5: FromRequestParts<S> + Send + Sync + 'static,
<A5 as FromRequestParts<S>>::Rejection: 'static,
A6: FromRequestParts<S> + Send + Sync + 'static,
<A6 as FromRequestParts<S>>::Rejection: 'static,
A7: FromRequestParts<S> + Send + Sync + 'static,
<A7 as FromRequestParts<S>>::Rejection: 'static,
A8: FromRequestParts<S> + Send + Sync + 'static,
<A8 as FromRequestParts<S>>::Rejection: 'static,
A9: FromRequestParts<S> + Send + Sync + 'static,
<A9 as FromRequestParts<S>>::Rejection: 'static,
A10: FromRequestParts<S> + Send + Sync + 'static,
<A10 as FromRequestParts<S>>::Rejection: 'static,
A11: FromRequestParts<S> + Send + Sync + 'static,
<A11 as FromRequestParts<S>>::Rejection: 'static,
A12: FromRequestParts<S> + Send + Sync + 'static,
<A12 as FromRequestParts<S>>::Rejection: 'static,
Req: Message + DeserializeOwned + Default + Send + 'static,
Resp: Message + Serialize + Send + Sync + 'static,
impl<F, Fut, S, Req, Resp, St, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12> Handler<(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, ConnectRequest<Streaming<Req>>, StreamBody<St>), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, ConnectRequest<Streaming<Req>>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<StreamBody<St>>, ConnectError>> + Send + 'static,
St: Stream<Item = Result<Resp, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
A3: FromRequestParts<S> + Send + Sync + 'static,
<A3 as FromRequestParts<S>>::Rejection: 'static,
A4: FromRequestParts<S> + Send + Sync + 'static,
<A4 as FromRequestParts<S>>::Rejection: 'static,
A5: FromRequestParts<S> + Send + Sync + 'static,
<A5 as FromRequestParts<S>>::Rejection: 'static,
A6: FromRequestParts<S> + Send + Sync + 'static,
<A6 as FromRequestParts<S>>::Rejection: 'static,
A7: FromRequestParts<S> + Send + Sync + 'static,
<A7 as FromRequestParts<S>>::Rejection: 'static,
A8: FromRequestParts<S> + Send + Sync + 'static,
<A8 as FromRequestParts<S>>::Rejection: 'static,
A9: FromRequestParts<S> + Send + Sync + 'static,
<A9 as FromRequestParts<S>>::Rejection: 'static,
A10: FromRequestParts<S> + Send + Sync + 'static,
<A10 as FromRequestParts<S>>::Rejection: 'static,
A11: FromRequestParts<S> + Send + Sync + 'static,
<A11 as FromRequestParts<S>>::Rejection: 'static,
A12: FromRequestParts<S> + Send + Sync + 'static,
<A12 as FromRequestParts<S>>::Rejection: 'static,
Req: Message + DeserializeOwned + Default + Send + 'static,
Resp: Message + Serialize + Send + Sync + 'static,
Source§type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
The type of future calling this handler returns.
Source§fn call(self, req: Request, state: S) -> Self::Future
fn call(self, req: Request, state: S) -> Self::Future
Call the handler with the given request.
Source§fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
Apply a
tower::Layer to the handler. Read moreSource§fn with_state(self, state: S) -> HandlerService<Self, T, S>
fn with_state(self, state: S) -> HandlerService<Self, T, S>
Convert the handler into a
Service by providing the stateSource§impl<F, Fut, S, Req, Resp, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11> Handler<(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, ConnectRequest<Req>), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, ConnectRequest<Req>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<Resp>, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
A3: FromRequestParts<S> + Send + Sync + 'static,
<A3 as FromRequestParts<S>>::Rejection: 'static,
A4: FromRequestParts<S> + Send + Sync + 'static,
<A4 as FromRequestParts<S>>::Rejection: 'static,
A5: FromRequestParts<S> + Send + Sync + 'static,
<A5 as FromRequestParts<S>>::Rejection: 'static,
A6: FromRequestParts<S> + Send + Sync + 'static,
<A6 as FromRequestParts<S>>::Rejection: 'static,
A7: FromRequestParts<S> + Send + Sync + 'static,
<A7 as FromRequestParts<S>>::Rejection: 'static,
A8: FromRequestParts<S> + Send + Sync + 'static,
<A8 as FromRequestParts<S>>::Rejection: 'static,
A9: FromRequestParts<S> + Send + Sync + 'static,
<A9 as FromRequestParts<S>>::Rejection: 'static,
A10: FromRequestParts<S> + Send + Sync + 'static,
<A10 as FromRequestParts<S>>::Rejection: 'static,
A11: FromRequestParts<S> + Send + Sync + 'static,
<A11 as FromRequestParts<S>>::Rejection: 'static,
ConnectRequest<Req>: FromRequest<S>,
Req: Send + Sync + 'static,
Resp: Message + Serialize + Send + Clone + Sync + 'static,
impl<F, Fut, S, Req, Resp, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11> Handler<(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, ConnectRequest<Req>), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, ConnectRequest<Req>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<Resp>, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
A3: FromRequestParts<S> + Send + Sync + 'static,
<A3 as FromRequestParts<S>>::Rejection: 'static,
A4: FromRequestParts<S> + Send + Sync + 'static,
<A4 as FromRequestParts<S>>::Rejection: 'static,
A5: FromRequestParts<S> + Send + Sync + 'static,
<A5 as FromRequestParts<S>>::Rejection: 'static,
A6: FromRequestParts<S> + Send + Sync + 'static,
<A6 as FromRequestParts<S>>::Rejection: 'static,
A7: FromRequestParts<S> + Send + Sync + 'static,
<A7 as FromRequestParts<S>>::Rejection: 'static,
A8: FromRequestParts<S> + Send + Sync + 'static,
<A8 as FromRequestParts<S>>::Rejection: 'static,
A9: FromRequestParts<S> + Send + Sync + 'static,
<A9 as FromRequestParts<S>>::Rejection: 'static,
A10: FromRequestParts<S> + Send + Sync + 'static,
<A10 as FromRequestParts<S>>::Rejection: 'static,
A11: FromRequestParts<S> + Send + Sync + 'static,
<A11 as FromRequestParts<S>>::Rejection: 'static,
ConnectRequest<Req>: FromRequest<S>,
Req: Send + Sync + 'static,
Resp: Message + Serialize + Send + Clone + Sync + 'static,
Source§type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
The type of future calling this handler returns.
Source§fn call(self, req: Request, state: S) -> Self::Future
fn call(self, req: Request, state: S) -> Self::Future
Call the handler with the given request.
Source§fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
Apply a
tower::Layer to the handler. Read moreSource§fn with_state(self, state: S) -> HandlerService<Self, T, S>
fn with_state(self, state: S) -> HandlerService<Self, T, S>
Convert the handler into a
Service by providing the stateSource§impl<F, Fut, S, Req, Resp, St, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11> Handler<(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, ConnectRequest<Req>, StreamBody<St>), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, ConnectRequest<Req>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<StreamBody<St>>, ConnectError>> + Send + 'static,
St: Stream<Item = Result<Resp, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
A3: FromRequestParts<S> + Send + Sync + 'static,
<A3 as FromRequestParts<S>>::Rejection: 'static,
A4: FromRequestParts<S> + Send + Sync + 'static,
<A4 as FromRequestParts<S>>::Rejection: 'static,
A5: FromRequestParts<S> + Send + Sync + 'static,
<A5 as FromRequestParts<S>>::Rejection: 'static,
A6: FromRequestParts<S> + Send + Sync + 'static,
<A6 as FromRequestParts<S>>::Rejection: 'static,
A7: FromRequestParts<S> + Send + Sync + 'static,
<A7 as FromRequestParts<S>>::Rejection: 'static,
A8: FromRequestParts<S> + Send + Sync + 'static,
<A8 as FromRequestParts<S>>::Rejection: 'static,
A9: FromRequestParts<S> + Send + Sync + 'static,
<A9 as FromRequestParts<S>>::Rejection: 'static,
A10: FromRequestParts<S> + Send + Sync + 'static,
<A10 as FromRequestParts<S>>::Rejection: 'static,
A11: FromRequestParts<S> + Send + Sync + 'static,
<A11 as FromRequestParts<S>>::Rejection: 'static,
Req: Message + DeserializeOwned + Default + Send + Sync + 'static,
Resp: Message + Serialize + Send + Sync + 'static,
impl<F, Fut, S, Req, Resp, St, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11> Handler<(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, ConnectRequest<Req>, StreamBody<St>), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, ConnectRequest<Req>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<StreamBody<St>>, ConnectError>> + Send + 'static,
St: Stream<Item = Result<Resp, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
A3: FromRequestParts<S> + Send + Sync + 'static,
<A3 as FromRequestParts<S>>::Rejection: 'static,
A4: FromRequestParts<S> + Send + Sync + 'static,
<A4 as FromRequestParts<S>>::Rejection: 'static,
A5: FromRequestParts<S> + Send + Sync + 'static,
<A5 as FromRequestParts<S>>::Rejection: 'static,
A6: FromRequestParts<S> + Send + Sync + 'static,
<A6 as FromRequestParts<S>>::Rejection: 'static,
A7: FromRequestParts<S> + Send + Sync + 'static,
<A7 as FromRequestParts<S>>::Rejection: 'static,
A8: FromRequestParts<S> + Send + Sync + 'static,
<A8 as FromRequestParts<S>>::Rejection: 'static,
A9: FromRequestParts<S> + Send + Sync + 'static,
<A9 as FromRequestParts<S>>::Rejection: 'static,
A10: FromRequestParts<S> + Send + Sync + 'static,
<A10 as FromRequestParts<S>>::Rejection: 'static,
A11: FromRequestParts<S> + Send + Sync + 'static,
<A11 as FromRequestParts<S>>::Rejection: 'static,
Req: Message + DeserializeOwned + Default + Send + Sync + 'static,
Resp: Message + Serialize + Send + Sync + 'static,
Source§type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
The type of future calling this handler returns.
Source§fn call(self, req: Request, state: S) -> Self::Future
fn call(self, req: Request, state: S) -> Self::Future
Call the handler with the given request.
Source§fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
Apply a
tower::Layer to the handler. Read moreSource§fn with_state(self, state: S) -> HandlerService<Self, T, S>
fn with_state(self, state: S) -> HandlerService<Self, T, S>
Convert the handler into a
Service by providing the stateSource§impl<F, Fut, S, Req, Resp, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11> Handler<(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, ConnectRequest<Streaming<Req>>, Resp), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, ConnectRequest<Streaming<Req>>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<Resp>, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
A3: FromRequestParts<S> + Send + Sync + 'static,
<A3 as FromRequestParts<S>>::Rejection: 'static,
A4: FromRequestParts<S> + Send + Sync + 'static,
<A4 as FromRequestParts<S>>::Rejection: 'static,
A5: FromRequestParts<S> + Send + Sync + 'static,
<A5 as FromRequestParts<S>>::Rejection: 'static,
A6: FromRequestParts<S> + Send + Sync + 'static,
<A6 as FromRequestParts<S>>::Rejection: 'static,
A7: FromRequestParts<S> + Send + Sync + 'static,
<A7 as FromRequestParts<S>>::Rejection: 'static,
A8: FromRequestParts<S> + Send + Sync + 'static,
<A8 as FromRequestParts<S>>::Rejection: 'static,
A9: FromRequestParts<S> + Send + Sync + 'static,
<A9 as FromRequestParts<S>>::Rejection: 'static,
A10: FromRequestParts<S> + Send + Sync + 'static,
<A10 as FromRequestParts<S>>::Rejection: 'static,
A11: FromRequestParts<S> + Send + Sync + 'static,
<A11 as FromRequestParts<S>>::Rejection: 'static,
Req: Message + DeserializeOwned + Default + Send + 'static,
Resp: Message + Serialize + Send + Clone + Sync + 'static,
impl<F, Fut, S, Req, Resp, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11> Handler<(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, ConnectRequest<Streaming<Req>>, Resp), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, ConnectRequest<Streaming<Req>>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<Resp>, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
A3: FromRequestParts<S> + Send + Sync + 'static,
<A3 as FromRequestParts<S>>::Rejection: 'static,
A4: FromRequestParts<S> + Send + Sync + 'static,
<A4 as FromRequestParts<S>>::Rejection: 'static,
A5: FromRequestParts<S> + Send + Sync + 'static,
<A5 as FromRequestParts<S>>::Rejection: 'static,
A6: FromRequestParts<S> + Send + Sync + 'static,
<A6 as FromRequestParts<S>>::Rejection: 'static,
A7: FromRequestParts<S> + Send + Sync + 'static,
<A7 as FromRequestParts<S>>::Rejection: 'static,
A8: FromRequestParts<S> + Send + Sync + 'static,
<A8 as FromRequestParts<S>>::Rejection: 'static,
A9: FromRequestParts<S> + Send + Sync + 'static,
<A9 as FromRequestParts<S>>::Rejection: 'static,
A10: FromRequestParts<S> + Send + Sync + 'static,
<A10 as FromRequestParts<S>>::Rejection: 'static,
A11: FromRequestParts<S> + Send + Sync + 'static,
<A11 as FromRequestParts<S>>::Rejection: 'static,
Req: Message + DeserializeOwned + Default + Send + 'static,
Resp: Message + Serialize + Send + Clone + Sync + 'static,
Source§type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
The type of future calling this handler returns.
Source§fn call(self, req: Request, state: S) -> Self::Future
fn call(self, req: Request, state: S) -> Self::Future
Call the handler with the given request.
Source§fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
Apply a
tower::Layer to the handler. Read moreSource§fn with_state(self, state: S) -> HandlerService<Self, T, S>
fn with_state(self, state: S) -> HandlerService<Self, T, S>
Convert the handler into a
Service by providing the stateSource§impl<F, Fut, S, Req, Resp, St, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11> Handler<(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, ConnectRequest<Streaming<Req>>, StreamBody<St>), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, ConnectRequest<Streaming<Req>>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<StreamBody<St>>, ConnectError>> + Send + 'static,
St: Stream<Item = Result<Resp, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
A3: FromRequestParts<S> + Send + Sync + 'static,
<A3 as FromRequestParts<S>>::Rejection: 'static,
A4: FromRequestParts<S> + Send + Sync + 'static,
<A4 as FromRequestParts<S>>::Rejection: 'static,
A5: FromRequestParts<S> + Send + Sync + 'static,
<A5 as FromRequestParts<S>>::Rejection: 'static,
A6: FromRequestParts<S> + Send + Sync + 'static,
<A6 as FromRequestParts<S>>::Rejection: 'static,
A7: FromRequestParts<S> + Send + Sync + 'static,
<A7 as FromRequestParts<S>>::Rejection: 'static,
A8: FromRequestParts<S> + Send + Sync + 'static,
<A8 as FromRequestParts<S>>::Rejection: 'static,
A9: FromRequestParts<S> + Send + Sync + 'static,
<A9 as FromRequestParts<S>>::Rejection: 'static,
A10: FromRequestParts<S> + Send + Sync + 'static,
<A10 as FromRequestParts<S>>::Rejection: 'static,
A11: FromRequestParts<S> + Send + Sync + 'static,
<A11 as FromRequestParts<S>>::Rejection: 'static,
Req: Message + DeserializeOwned + Default + Send + 'static,
Resp: Message + Serialize + Send + Sync + 'static,
impl<F, Fut, S, Req, Resp, St, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11> Handler<(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, ConnectRequest<Streaming<Req>>, StreamBody<St>), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, ConnectRequest<Streaming<Req>>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<StreamBody<St>>, ConnectError>> + Send + 'static,
St: Stream<Item = Result<Resp, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
A3: FromRequestParts<S> + Send + Sync + 'static,
<A3 as FromRequestParts<S>>::Rejection: 'static,
A4: FromRequestParts<S> + Send + Sync + 'static,
<A4 as FromRequestParts<S>>::Rejection: 'static,
A5: FromRequestParts<S> + Send + Sync + 'static,
<A5 as FromRequestParts<S>>::Rejection: 'static,
A6: FromRequestParts<S> + Send + Sync + 'static,
<A6 as FromRequestParts<S>>::Rejection: 'static,
A7: FromRequestParts<S> + Send + Sync + 'static,
<A7 as FromRequestParts<S>>::Rejection: 'static,
A8: FromRequestParts<S> + Send + Sync + 'static,
<A8 as FromRequestParts<S>>::Rejection: 'static,
A9: FromRequestParts<S> + Send + Sync + 'static,
<A9 as FromRequestParts<S>>::Rejection: 'static,
A10: FromRequestParts<S> + Send + Sync + 'static,
<A10 as FromRequestParts<S>>::Rejection: 'static,
A11: FromRequestParts<S> + Send + Sync + 'static,
<A11 as FromRequestParts<S>>::Rejection: 'static,
Req: Message + DeserializeOwned + Default + Send + 'static,
Resp: Message + Serialize + Send + Sync + 'static,
Source§type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
The type of future calling this handler returns.
Source§fn call(self, req: Request, state: S) -> Self::Future
fn call(self, req: Request, state: S) -> Self::Future
Call the handler with the given request.
Source§fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
Apply a
tower::Layer to the handler. Read moreSource§fn with_state(self, state: S) -> HandlerService<Self, T, S>
fn with_state(self, state: S) -> HandlerService<Self, T, S>
Convert the handler into a
Service by providing the stateSource§impl<F, Fut, S, Req, Resp, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10> Handler<(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, ConnectRequest<Req>), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, ConnectRequest<Req>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<Resp>, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
A3: FromRequestParts<S> + Send + Sync + 'static,
<A3 as FromRequestParts<S>>::Rejection: 'static,
A4: FromRequestParts<S> + Send + Sync + 'static,
<A4 as FromRequestParts<S>>::Rejection: 'static,
A5: FromRequestParts<S> + Send + Sync + 'static,
<A5 as FromRequestParts<S>>::Rejection: 'static,
A6: FromRequestParts<S> + Send + Sync + 'static,
<A6 as FromRequestParts<S>>::Rejection: 'static,
A7: FromRequestParts<S> + Send + Sync + 'static,
<A7 as FromRequestParts<S>>::Rejection: 'static,
A8: FromRequestParts<S> + Send + Sync + 'static,
<A8 as FromRequestParts<S>>::Rejection: 'static,
A9: FromRequestParts<S> + Send + Sync + 'static,
<A9 as FromRequestParts<S>>::Rejection: 'static,
A10: FromRequestParts<S> + Send + Sync + 'static,
<A10 as FromRequestParts<S>>::Rejection: 'static,
ConnectRequest<Req>: FromRequest<S>,
Req: Send + Sync + 'static,
Resp: Message + Serialize + Send + Clone + Sync + 'static,
impl<F, Fut, S, Req, Resp, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10> Handler<(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, ConnectRequest<Req>), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, ConnectRequest<Req>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<Resp>, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
A3: FromRequestParts<S> + Send + Sync + 'static,
<A3 as FromRequestParts<S>>::Rejection: 'static,
A4: FromRequestParts<S> + Send + Sync + 'static,
<A4 as FromRequestParts<S>>::Rejection: 'static,
A5: FromRequestParts<S> + Send + Sync + 'static,
<A5 as FromRequestParts<S>>::Rejection: 'static,
A6: FromRequestParts<S> + Send + Sync + 'static,
<A6 as FromRequestParts<S>>::Rejection: 'static,
A7: FromRequestParts<S> + Send + Sync + 'static,
<A7 as FromRequestParts<S>>::Rejection: 'static,
A8: FromRequestParts<S> + Send + Sync + 'static,
<A8 as FromRequestParts<S>>::Rejection: 'static,
A9: FromRequestParts<S> + Send + Sync + 'static,
<A9 as FromRequestParts<S>>::Rejection: 'static,
A10: FromRequestParts<S> + Send + Sync + 'static,
<A10 as FromRequestParts<S>>::Rejection: 'static,
ConnectRequest<Req>: FromRequest<S>,
Req: Send + Sync + 'static,
Resp: Message + Serialize + Send + Clone + Sync + 'static,
Source§type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
The type of future calling this handler returns.
Source§fn call(self, req: Request, state: S) -> Self::Future
fn call(self, req: Request, state: S) -> Self::Future
Call the handler with the given request.
Source§fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
Apply a
tower::Layer to the handler. Read moreSource§fn with_state(self, state: S) -> HandlerService<Self, T, S>
fn with_state(self, state: S) -> HandlerService<Self, T, S>
Convert the handler into a
Service by providing the stateSource§impl<F, Fut, S, Req, Resp, St, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10> Handler<(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, ConnectRequest<Req>, StreamBody<St>), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, ConnectRequest<Req>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<StreamBody<St>>, ConnectError>> + Send + 'static,
St: Stream<Item = Result<Resp, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
A3: FromRequestParts<S> + Send + Sync + 'static,
<A3 as FromRequestParts<S>>::Rejection: 'static,
A4: FromRequestParts<S> + Send + Sync + 'static,
<A4 as FromRequestParts<S>>::Rejection: 'static,
A5: FromRequestParts<S> + Send + Sync + 'static,
<A5 as FromRequestParts<S>>::Rejection: 'static,
A6: FromRequestParts<S> + Send + Sync + 'static,
<A6 as FromRequestParts<S>>::Rejection: 'static,
A7: FromRequestParts<S> + Send + Sync + 'static,
<A7 as FromRequestParts<S>>::Rejection: 'static,
A8: FromRequestParts<S> + Send + Sync + 'static,
<A8 as FromRequestParts<S>>::Rejection: 'static,
A9: FromRequestParts<S> + Send + Sync + 'static,
<A9 as FromRequestParts<S>>::Rejection: 'static,
A10: FromRequestParts<S> + Send + Sync + 'static,
<A10 as FromRequestParts<S>>::Rejection: 'static,
Req: Message + DeserializeOwned + Default + Send + Sync + 'static,
Resp: Message + Serialize + Send + Sync + 'static,
impl<F, Fut, S, Req, Resp, St, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10> Handler<(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, ConnectRequest<Req>, StreamBody<St>), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, ConnectRequest<Req>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<StreamBody<St>>, ConnectError>> + Send + 'static,
St: Stream<Item = Result<Resp, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
A3: FromRequestParts<S> + Send + Sync + 'static,
<A3 as FromRequestParts<S>>::Rejection: 'static,
A4: FromRequestParts<S> + Send + Sync + 'static,
<A4 as FromRequestParts<S>>::Rejection: 'static,
A5: FromRequestParts<S> + Send + Sync + 'static,
<A5 as FromRequestParts<S>>::Rejection: 'static,
A6: FromRequestParts<S> + Send + Sync + 'static,
<A6 as FromRequestParts<S>>::Rejection: 'static,
A7: FromRequestParts<S> + Send + Sync + 'static,
<A7 as FromRequestParts<S>>::Rejection: 'static,
A8: FromRequestParts<S> + Send + Sync + 'static,
<A8 as FromRequestParts<S>>::Rejection: 'static,
A9: FromRequestParts<S> + Send + Sync + 'static,
<A9 as FromRequestParts<S>>::Rejection: 'static,
A10: FromRequestParts<S> + Send + Sync + 'static,
<A10 as FromRequestParts<S>>::Rejection: 'static,
Req: Message + DeserializeOwned + Default + Send + Sync + 'static,
Resp: Message + Serialize + Send + Sync + 'static,
Source§type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
The type of future calling this handler returns.
Source§fn call(self, req: Request, state: S) -> Self::Future
fn call(self, req: Request, state: S) -> Self::Future
Call the handler with the given request.
Source§fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
Apply a
tower::Layer to the handler. Read moreSource§fn with_state(self, state: S) -> HandlerService<Self, T, S>
fn with_state(self, state: S) -> HandlerService<Self, T, S>
Convert the handler into a
Service by providing the stateSource§impl<F, Fut, S, Req, Resp, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10> Handler<(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, ConnectRequest<Streaming<Req>>, Resp), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, ConnectRequest<Streaming<Req>>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<Resp>, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
A3: FromRequestParts<S> + Send + Sync + 'static,
<A3 as FromRequestParts<S>>::Rejection: 'static,
A4: FromRequestParts<S> + Send + Sync + 'static,
<A4 as FromRequestParts<S>>::Rejection: 'static,
A5: FromRequestParts<S> + Send + Sync + 'static,
<A5 as FromRequestParts<S>>::Rejection: 'static,
A6: FromRequestParts<S> + Send + Sync + 'static,
<A6 as FromRequestParts<S>>::Rejection: 'static,
A7: FromRequestParts<S> + Send + Sync + 'static,
<A7 as FromRequestParts<S>>::Rejection: 'static,
A8: FromRequestParts<S> + Send + Sync + 'static,
<A8 as FromRequestParts<S>>::Rejection: 'static,
A9: FromRequestParts<S> + Send + Sync + 'static,
<A9 as FromRequestParts<S>>::Rejection: 'static,
A10: FromRequestParts<S> + Send + Sync + 'static,
<A10 as FromRequestParts<S>>::Rejection: 'static,
Req: Message + DeserializeOwned + Default + Send + 'static,
Resp: Message + Serialize + Send + Clone + Sync + 'static,
impl<F, Fut, S, Req, Resp, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10> Handler<(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, ConnectRequest<Streaming<Req>>, Resp), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, ConnectRequest<Streaming<Req>>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<Resp>, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
A3: FromRequestParts<S> + Send + Sync + 'static,
<A3 as FromRequestParts<S>>::Rejection: 'static,
A4: FromRequestParts<S> + Send + Sync + 'static,
<A4 as FromRequestParts<S>>::Rejection: 'static,
A5: FromRequestParts<S> + Send + Sync + 'static,
<A5 as FromRequestParts<S>>::Rejection: 'static,
A6: FromRequestParts<S> + Send + Sync + 'static,
<A6 as FromRequestParts<S>>::Rejection: 'static,
A7: FromRequestParts<S> + Send + Sync + 'static,
<A7 as FromRequestParts<S>>::Rejection: 'static,
A8: FromRequestParts<S> + Send + Sync + 'static,
<A8 as FromRequestParts<S>>::Rejection: 'static,
A9: FromRequestParts<S> + Send + Sync + 'static,
<A9 as FromRequestParts<S>>::Rejection: 'static,
A10: FromRequestParts<S> + Send + Sync + 'static,
<A10 as FromRequestParts<S>>::Rejection: 'static,
Req: Message + DeserializeOwned + Default + Send + 'static,
Resp: Message + Serialize + Send + Clone + Sync + 'static,
Source§type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
The type of future calling this handler returns.
Source§fn call(self, req: Request, state: S) -> Self::Future
fn call(self, req: Request, state: S) -> Self::Future
Call the handler with the given request.
Source§fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
Apply a
tower::Layer to the handler. Read moreSource§fn with_state(self, state: S) -> HandlerService<Self, T, S>
fn with_state(self, state: S) -> HandlerService<Self, T, S>
Convert the handler into a
Service by providing the stateSource§impl<F, Fut, S, Req, Resp, St, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10> Handler<(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, ConnectRequest<Streaming<Req>>, StreamBody<St>), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, ConnectRequest<Streaming<Req>>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<StreamBody<St>>, ConnectError>> + Send + 'static,
St: Stream<Item = Result<Resp, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
A3: FromRequestParts<S> + Send + Sync + 'static,
<A3 as FromRequestParts<S>>::Rejection: 'static,
A4: FromRequestParts<S> + Send + Sync + 'static,
<A4 as FromRequestParts<S>>::Rejection: 'static,
A5: FromRequestParts<S> + Send + Sync + 'static,
<A5 as FromRequestParts<S>>::Rejection: 'static,
A6: FromRequestParts<S> + Send + Sync + 'static,
<A6 as FromRequestParts<S>>::Rejection: 'static,
A7: FromRequestParts<S> + Send + Sync + 'static,
<A7 as FromRequestParts<S>>::Rejection: 'static,
A8: FromRequestParts<S> + Send + Sync + 'static,
<A8 as FromRequestParts<S>>::Rejection: 'static,
A9: FromRequestParts<S> + Send + Sync + 'static,
<A9 as FromRequestParts<S>>::Rejection: 'static,
A10: FromRequestParts<S> + Send + Sync + 'static,
<A10 as FromRequestParts<S>>::Rejection: 'static,
Req: Message + DeserializeOwned + Default + Send + 'static,
Resp: Message + Serialize + Send + Sync + 'static,
impl<F, Fut, S, Req, Resp, St, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10> Handler<(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, ConnectRequest<Streaming<Req>>, StreamBody<St>), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, ConnectRequest<Streaming<Req>>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<StreamBody<St>>, ConnectError>> + Send + 'static,
St: Stream<Item = Result<Resp, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
A3: FromRequestParts<S> + Send + Sync + 'static,
<A3 as FromRequestParts<S>>::Rejection: 'static,
A4: FromRequestParts<S> + Send + Sync + 'static,
<A4 as FromRequestParts<S>>::Rejection: 'static,
A5: FromRequestParts<S> + Send + Sync + 'static,
<A5 as FromRequestParts<S>>::Rejection: 'static,
A6: FromRequestParts<S> + Send + Sync + 'static,
<A6 as FromRequestParts<S>>::Rejection: 'static,
A7: FromRequestParts<S> + Send + Sync + 'static,
<A7 as FromRequestParts<S>>::Rejection: 'static,
A8: FromRequestParts<S> + Send + Sync + 'static,
<A8 as FromRequestParts<S>>::Rejection: 'static,
A9: FromRequestParts<S> + Send + Sync + 'static,
<A9 as FromRequestParts<S>>::Rejection: 'static,
A10: FromRequestParts<S> + Send + Sync + 'static,
<A10 as FromRequestParts<S>>::Rejection: 'static,
Req: Message + DeserializeOwned + Default + Send + 'static,
Resp: Message + Serialize + Send + Sync + 'static,
Source§type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
The type of future calling this handler returns.
Source§fn call(self, req: Request, state: S) -> Self::Future
fn call(self, req: Request, state: S) -> Self::Future
Call the handler with the given request.
Source§fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
Apply a
tower::Layer to the handler. Read moreSource§fn with_state(self, state: S) -> HandlerService<Self, T, S>
fn with_state(self, state: S) -> HandlerService<Self, T, S>
Convert the handler into a
Service by providing the stateSource§impl<F, Fut, S, Req, Resp, A1, A2, A3, A4, A5, A6, A7, A8, A9> Handler<(A1, A2, A3, A4, A5, A6, A7, A8, A9, ConnectRequest<Req>), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, A3, A4, A5, A6, A7, A8, A9, ConnectRequest<Req>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<Resp>, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
A3: FromRequestParts<S> + Send + Sync + 'static,
<A3 as FromRequestParts<S>>::Rejection: 'static,
A4: FromRequestParts<S> + Send + Sync + 'static,
<A4 as FromRequestParts<S>>::Rejection: 'static,
A5: FromRequestParts<S> + Send + Sync + 'static,
<A5 as FromRequestParts<S>>::Rejection: 'static,
A6: FromRequestParts<S> + Send + Sync + 'static,
<A6 as FromRequestParts<S>>::Rejection: 'static,
A7: FromRequestParts<S> + Send + Sync + 'static,
<A7 as FromRequestParts<S>>::Rejection: 'static,
A8: FromRequestParts<S> + Send + Sync + 'static,
<A8 as FromRequestParts<S>>::Rejection: 'static,
A9: FromRequestParts<S> + Send + Sync + 'static,
<A9 as FromRequestParts<S>>::Rejection: 'static,
ConnectRequest<Req>: FromRequest<S>,
Req: Send + Sync + 'static,
Resp: Message + Serialize + Send + Clone + Sync + 'static,
impl<F, Fut, S, Req, Resp, A1, A2, A3, A4, A5, A6, A7, A8, A9> Handler<(A1, A2, A3, A4, A5, A6, A7, A8, A9, ConnectRequest<Req>), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, A3, A4, A5, A6, A7, A8, A9, ConnectRequest<Req>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<Resp>, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
A3: FromRequestParts<S> + Send + Sync + 'static,
<A3 as FromRequestParts<S>>::Rejection: 'static,
A4: FromRequestParts<S> + Send + Sync + 'static,
<A4 as FromRequestParts<S>>::Rejection: 'static,
A5: FromRequestParts<S> + Send + Sync + 'static,
<A5 as FromRequestParts<S>>::Rejection: 'static,
A6: FromRequestParts<S> + Send + Sync + 'static,
<A6 as FromRequestParts<S>>::Rejection: 'static,
A7: FromRequestParts<S> + Send + Sync + 'static,
<A7 as FromRequestParts<S>>::Rejection: 'static,
A8: FromRequestParts<S> + Send + Sync + 'static,
<A8 as FromRequestParts<S>>::Rejection: 'static,
A9: FromRequestParts<S> + Send + Sync + 'static,
<A9 as FromRequestParts<S>>::Rejection: 'static,
ConnectRequest<Req>: FromRequest<S>,
Req: Send + Sync + 'static,
Resp: Message + Serialize + Send + Clone + Sync + 'static,
Source§type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
The type of future calling this handler returns.
Source§fn call(self, req: Request, state: S) -> Self::Future
fn call(self, req: Request, state: S) -> Self::Future
Call the handler with the given request.
Source§fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
Apply a
tower::Layer to the handler. Read moreSource§fn with_state(self, state: S) -> HandlerService<Self, T, S>
fn with_state(self, state: S) -> HandlerService<Self, T, S>
Convert the handler into a
Service by providing the stateSource§impl<F, Fut, S, Req, Resp, St, A1, A2, A3, A4, A5, A6, A7, A8, A9> Handler<(A1, A2, A3, A4, A5, A6, A7, A8, A9, ConnectRequest<Req>, StreamBody<St>), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, A3, A4, A5, A6, A7, A8, A9, ConnectRequest<Req>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<StreamBody<St>>, ConnectError>> + Send + 'static,
St: Stream<Item = Result<Resp, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
A3: FromRequestParts<S> + Send + Sync + 'static,
<A3 as FromRequestParts<S>>::Rejection: 'static,
A4: FromRequestParts<S> + Send + Sync + 'static,
<A4 as FromRequestParts<S>>::Rejection: 'static,
A5: FromRequestParts<S> + Send + Sync + 'static,
<A5 as FromRequestParts<S>>::Rejection: 'static,
A6: FromRequestParts<S> + Send + Sync + 'static,
<A6 as FromRequestParts<S>>::Rejection: 'static,
A7: FromRequestParts<S> + Send + Sync + 'static,
<A7 as FromRequestParts<S>>::Rejection: 'static,
A8: FromRequestParts<S> + Send + Sync + 'static,
<A8 as FromRequestParts<S>>::Rejection: 'static,
A9: FromRequestParts<S> + Send + Sync + 'static,
<A9 as FromRequestParts<S>>::Rejection: 'static,
Req: Message + DeserializeOwned + Default + Send + Sync + 'static,
Resp: Message + Serialize + Send + Sync + 'static,
impl<F, Fut, S, Req, Resp, St, A1, A2, A3, A4, A5, A6, A7, A8, A9> Handler<(A1, A2, A3, A4, A5, A6, A7, A8, A9, ConnectRequest<Req>, StreamBody<St>), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, A3, A4, A5, A6, A7, A8, A9, ConnectRequest<Req>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<StreamBody<St>>, ConnectError>> + Send + 'static,
St: Stream<Item = Result<Resp, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
A3: FromRequestParts<S> + Send + Sync + 'static,
<A3 as FromRequestParts<S>>::Rejection: 'static,
A4: FromRequestParts<S> + Send + Sync + 'static,
<A4 as FromRequestParts<S>>::Rejection: 'static,
A5: FromRequestParts<S> + Send + Sync + 'static,
<A5 as FromRequestParts<S>>::Rejection: 'static,
A6: FromRequestParts<S> + Send + Sync + 'static,
<A6 as FromRequestParts<S>>::Rejection: 'static,
A7: FromRequestParts<S> + Send + Sync + 'static,
<A7 as FromRequestParts<S>>::Rejection: 'static,
A8: FromRequestParts<S> + Send + Sync + 'static,
<A8 as FromRequestParts<S>>::Rejection: 'static,
A9: FromRequestParts<S> + Send + Sync + 'static,
<A9 as FromRequestParts<S>>::Rejection: 'static,
Req: Message + DeserializeOwned + Default + Send + Sync + 'static,
Resp: Message + Serialize + Send + Sync + 'static,
Source§type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
The type of future calling this handler returns.
Source§fn call(self, req: Request, state: S) -> Self::Future
fn call(self, req: Request, state: S) -> Self::Future
Call the handler with the given request.
Source§fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
Apply a
tower::Layer to the handler. Read moreSource§fn with_state(self, state: S) -> HandlerService<Self, T, S>
fn with_state(self, state: S) -> HandlerService<Self, T, S>
Convert the handler into a
Service by providing the stateSource§impl<F, Fut, S, Req, Resp, A1, A2, A3, A4, A5, A6, A7, A8, A9> Handler<(A1, A2, A3, A4, A5, A6, A7, A8, A9, ConnectRequest<Streaming<Req>>, Resp), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, A3, A4, A5, A6, A7, A8, A9, ConnectRequest<Streaming<Req>>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<Resp>, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
A3: FromRequestParts<S> + Send + Sync + 'static,
<A3 as FromRequestParts<S>>::Rejection: 'static,
A4: FromRequestParts<S> + Send + Sync + 'static,
<A4 as FromRequestParts<S>>::Rejection: 'static,
A5: FromRequestParts<S> + Send + Sync + 'static,
<A5 as FromRequestParts<S>>::Rejection: 'static,
A6: FromRequestParts<S> + Send + Sync + 'static,
<A6 as FromRequestParts<S>>::Rejection: 'static,
A7: FromRequestParts<S> + Send + Sync + 'static,
<A7 as FromRequestParts<S>>::Rejection: 'static,
A8: FromRequestParts<S> + Send + Sync + 'static,
<A8 as FromRequestParts<S>>::Rejection: 'static,
A9: FromRequestParts<S> + Send + Sync + 'static,
<A9 as FromRequestParts<S>>::Rejection: 'static,
Req: Message + DeserializeOwned + Default + Send + 'static,
Resp: Message + Serialize + Send + Clone + Sync + 'static,
impl<F, Fut, S, Req, Resp, A1, A2, A3, A4, A5, A6, A7, A8, A9> Handler<(A1, A2, A3, A4, A5, A6, A7, A8, A9, ConnectRequest<Streaming<Req>>, Resp), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, A3, A4, A5, A6, A7, A8, A9, ConnectRequest<Streaming<Req>>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<Resp>, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
A3: FromRequestParts<S> + Send + Sync + 'static,
<A3 as FromRequestParts<S>>::Rejection: 'static,
A4: FromRequestParts<S> + Send + Sync + 'static,
<A4 as FromRequestParts<S>>::Rejection: 'static,
A5: FromRequestParts<S> + Send + Sync + 'static,
<A5 as FromRequestParts<S>>::Rejection: 'static,
A6: FromRequestParts<S> + Send + Sync + 'static,
<A6 as FromRequestParts<S>>::Rejection: 'static,
A7: FromRequestParts<S> + Send + Sync + 'static,
<A7 as FromRequestParts<S>>::Rejection: 'static,
A8: FromRequestParts<S> + Send + Sync + 'static,
<A8 as FromRequestParts<S>>::Rejection: 'static,
A9: FromRequestParts<S> + Send + Sync + 'static,
<A9 as FromRequestParts<S>>::Rejection: 'static,
Req: Message + DeserializeOwned + Default + Send + 'static,
Resp: Message + Serialize + Send + Clone + Sync + 'static,
Source§type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
The type of future calling this handler returns.
Source§fn call(self, req: Request, state: S) -> Self::Future
fn call(self, req: Request, state: S) -> Self::Future
Call the handler with the given request.
Source§fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
Apply a
tower::Layer to the handler. Read moreSource§fn with_state(self, state: S) -> HandlerService<Self, T, S>
fn with_state(self, state: S) -> HandlerService<Self, T, S>
Convert the handler into a
Service by providing the stateSource§impl<F, Fut, S, Req, Resp, St, A1, A2, A3, A4, A5, A6, A7, A8, A9> Handler<(A1, A2, A3, A4, A5, A6, A7, A8, A9, ConnectRequest<Streaming<Req>>, StreamBody<St>), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, A3, A4, A5, A6, A7, A8, A9, ConnectRequest<Streaming<Req>>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<StreamBody<St>>, ConnectError>> + Send + 'static,
St: Stream<Item = Result<Resp, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
A3: FromRequestParts<S> + Send + Sync + 'static,
<A3 as FromRequestParts<S>>::Rejection: 'static,
A4: FromRequestParts<S> + Send + Sync + 'static,
<A4 as FromRequestParts<S>>::Rejection: 'static,
A5: FromRequestParts<S> + Send + Sync + 'static,
<A5 as FromRequestParts<S>>::Rejection: 'static,
A6: FromRequestParts<S> + Send + Sync + 'static,
<A6 as FromRequestParts<S>>::Rejection: 'static,
A7: FromRequestParts<S> + Send + Sync + 'static,
<A7 as FromRequestParts<S>>::Rejection: 'static,
A8: FromRequestParts<S> + Send + Sync + 'static,
<A8 as FromRequestParts<S>>::Rejection: 'static,
A9: FromRequestParts<S> + Send + Sync + 'static,
<A9 as FromRequestParts<S>>::Rejection: 'static,
Req: Message + DeserializeOwned + Default + Send + 'static,
Resp: Message + Serialize + Send + Sync + 'static,
impl<F, Fut, S, Req, Resp, St, A1, A2, A3, A4, A5, A6, A7, A8, A9> Handler<(A1, A2, A3, A4, A5, A6, A7, A8, A9, ConnectRequest<Streaming<Req>>, StreamBody<St>), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, A3, A4, A5, A6, A7, A8, A9, ConnectRequest<Streaming<Req>>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<StreamBody<St>>, ConnectError>> + Send + 'static,
St: Stream<Item = Result<Resp, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
A3: FromRequestParts<S> + Send + Sync + 'static,
<A3 as FromRequestParts<S>>::Rejection: 'static,
A4: FromRequestParts<S> + Send + Sync + 'static,
<A4 as FromRequestParts<S>>::Rejection: 'static,
A5: FromRequestParts<S> + Send + Sync + 'static,
<A5 as FromRequestParts<S>>::Rejection: 'static,
A6: FromRequestParts<S> + Send + Sync + 'static,
<A6 as FromRequestParts<S>>::Rejection: 'static,
A7: FromRequestParts<S> + Send + Sync + 'static,
<A7 as FromRequestParts<S>>::Rejection: 'static,
A8: FromRequestParts<S> + Send + Sync + 'static,
<A8 as FromRequestParts<S>>::Rejection: 'static,
A9: FromRequestParts<S> + Send + Sync + 'static,
<A9 as FromRequestParts<S>>::Rejection: 'static,
Req: Message + DeserializeOwned + Default + Send + 'static,
Resp: Message + Serialize + Send + Sync + 'static,
Source§type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
The type of future calling this handler returns.
Source§fn call(self, req: Request, state: S) -> Self::Future
fn call(self, req: Request, state: S) -> Self::Future
Call the handler with the given request.
Source§fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
Apply a
tower::Layer to the handler. Read moreSource§fn with_state(self, state: S) -> HandlerService<Self, T, S>
fn with_state(self, state: S) -> HandlerService<Self, T, S>
Convert the handler into a
Service by providing the stateSource§impl<F, Fut, S, Req, Resp, A1, A2, A3, A4, A5, A6, A7, A8> Handler<(A1, A2, A3, A4, A5, A6, A7, A8, ConnectRequest<Req>), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, A3, A4, A5, A6, A7, A8, ConnectRequest<Req>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<Resp>, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
A3: FromRequestParts<S> + Send + Sync + 'static,
<A3 as FromRequestParts<S>>::Rejection: 'static,
A4: FromRequestParts<S> + Send + Sync + 'static,
<A4 as FromRequestParts<S>>::Rejection: 'static,
A5: FromRequestParts<S> + Send + Sync + 'static,
<A5 as FromRequestParts<S>>::Rejection: 'static,
A6: FromRequestParts<S> + Send + Sync + 'static,
<A6 as FromRequestParts<S>>::Rejection: 'static,
A7: FromRequestParts<S> + Send + Sync + 'static,
<A7 as FromRequestParts<S>>::Rejection: 'static,
A8: FromRequestParts<S> + Send + Sync + 'static,
<A8 as FromRequestParts<S>>::Rejection: 'static,
ConnectRequest<Req>: FromRequest<S>,
Req: Send + Sync + 'static,
Resp: Message + Serialize + Send + Clone + Sync + 'static,
impl<F, Fut, S, Req, Resp, A1, A2, A3, A4, A5, A6, A7, A8> Handler<(A1, A2, A3, A4, A5, A6, A7, A8, ConnectRequest<Req>), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, A3, A4, A5, A6, A7, A8, ConnectRequest<Req>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<Resp>, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
A3: FromRequestParts<S> + Send + Sync + 'static,
<A3 as FromRequestParts<S>>::Rejection: 'static,
A4: FromRequestParts<S> + Send + Sync + 'static,
<A4 as FromRequestParts<S>>::Rejection: 'static,
A5: FromRequestParts<S> + Send + Sync + 'static,
<A5 as FromRequestParts<S>>::Rejection: 'static,
A6: FromRequestParts<S> + Send + Sync + 'static,
<A6 as FromRequestParts<S>>::Rejection: 'static,
A7: FromRequestParts<S> + Send + Sync + 'static,
<A7 as FromRequestParts<S>>::Rejection: 'static,
A8: FromRequestParts<S> + Send + Sync + 'static,
<A8 as FromRequestParts<S>>::Rejection: 'static,
ConnectRequest<Req>: FromRequest<S>,
Req: Send + Sync + 'static,
Resp: Message + Serialize + Send + Clone + Sync + 'static,
Source§type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
The type of future calling this handler returns.
Source§fn call(self, req: Request, state: S) -> Self::Future
fn call(self, req: Request, state: S) -> Self::Future
Call the handler with the given request.
Source§fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
Apply a
tower::Layer to the handler. Read moreSource§fn with_state(self, state: S) -> HandlerService<Self, T, S>
fn with_state(self, state: S) -> HandlerService<Self, T, S>
Convert the handler into a
Service by providing the stateSource§impl<F, Fut, S, Req, Resp, St, A1, A2, A3, A4, A5, A6, A7, A8> Handler<(A1, A2, A3, A4, A5, A6, A7, A8, ConnectRequest<Req>, StreamBody<St>), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, A3, A4, A5, A6, A7, A8, ConnectRequest<Req>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<StreamBody<St>>, ConnectError>> + Send + 'static,
St: Stream<Item = Result<Resp, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
A3: FromRequestParts<S> + Send + Sync + 'static,
<A3 as FromRequestParts<S>>::Rejection: 'static,
A4: FromRequestParts<S> + Send + Sync + 'static,
<A4 as FromRequestParts<S>>::Rejection: 'static,
A5: FromRequestParts<S> + Send + Sync + 'static,
<A5 as FromRequestParts<S>>::Rejection: 'static,
A6: FromRequestParts<S> + Send + Sync + 'static,
<A6 as FromRequestParts<S>>::Rejection: 'static,
A7: FromRequestParts<S> + Send + Sync + 'static,
<A7 as FromRequestParts<S>>::Rejection: 'static,
A8: FromRequestParts<S> + Send + Sync + 'static,
<A8 as FromRequestParts<S>>::Rejection: 'static,
Req: Message + DeserializeOwned + Default + Send + Sync + 'static,
Resp: Message + Serialize + Send + Sync + 'static,
impl<F, Fut, S, Req, Resp, St, A1, A2, A3, A4, A5, A6, A7, A8> Handler<(A1, A2, A3, A4, A5, A6, A7, A8, ConnectRequest<Req>, StreamBody<St>), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, A3, A4, A5, A6, A7, A8, ConnectRequest<Req>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<StreamBody<St>>, ConnectError>> + Send + 'static,
St: Stream<Item = Result<Resp, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
A3: FromRequestParts<S> + Send + Sync + 'static,
<A3 as FromRequestParts<S>>::Rejection: 'static,
A4: FromRequestParts<S> + Send + Sync + 'static,
<A4 as FromRequestParts<S>>::Rejection: 'static,
A5: FromRequestParts<S> + Send + Sync + 'static,
<A5 as FromRequestParts<S>>::Rejection: 'static,
A6: FromRequestParts<S> + Send + Sync + 'static,
<A6 as FromRequestParts<S>>::Rejection: 'static,
A7: FromRequestParts<S> + Send + Sync + 'static,
<A7 as FromRequestParts<S>>::Rejection: 'static,
A8: FromRequestParts<S> + Send + Sync + 'static,
<A8 as FromRequestParts<S>>::Rejection: 'static,
Req: Message + DeserializeOwned + Default + Send + Sync + 'static,
Resp: Message + Serialize + Send + Sync + 'static,
Source§type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
The type of future calling this handler returns.
Source§fn call(self, req: Request, state: S) -> Self::Future
fn call(self, req: Request, state: S) -> Self::Future
Call the handler with the given request.
Source§fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
Apply a
tower::Layer to the handler. Read moreSource§fn with_state(self, state: S) -> HandlerService<Self, T, S>
fn with_state(self, state: S) -> HandlerService<Self, T, S>
Convert the handler into a
Service by providing the stateSource§impl<F, Fut, S, Req, Resp, A1, A2, A3, A4, A5, A6, A7, A8> Handler<(A1, A2, A3, A4, A5, A6, A7, A8, ConnectRequest<Streaming<Req>>, Resp), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, A3, A4, A5, A6, A7, A8, ConnectRequest<Streaming<Req>>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<Resp>, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
A3: FromRequestParts<S> + Send + Sync + 'static,
<A3 as FromRequestParts<S>>::Rejection: 'static,
A4: FromRequestParts<S> + Send + Sync + 'static,
<A4 as FromRequestParts<S>>::Rejection: 'static,
A5: FromRequestParts<S> + Send + Sync + 'static,
<A5 as FromRequestParts<S>>::Rejection: 'static,
A6: FromRequestParts<S> + Send + Sync + 'static,
<A6 as FromRequestParts<S>>::Rejection: 'static,
A7: FromRequestParts<S> + Send + Sync + 'static,
<A7 as FromRequestParts<S>>::Rejection: 'static,
A8: FromRequestParts<S> + Send + Sync + 'static,
<A8 as FromRequestParts<S>>::Rejection: 'static,
Req: Message + DeserializeOwned + Default + Send + 'static,
Resp: Message + Serialize + Send + Clone + Sync + 'static,
impl<F, Fut, S, Req, Resp, A1, A2, A3, A4, A5, A6, A7, A8> Handler<(A1, A2, A3, A4, A5, A6, A7, A8, ConnectRequest<Streaming<Req>>, Resp), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, A3, A4, A5, A6, A7, A8, ConnectRequest<Streaming<Req>>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<Resp>, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
A3: FromRequestParts<S> + Send + Sync + 'static,
<A3 as FromRequestParts<S>>::Rejection: 'static,
A4: FromRequestParts<S> + Send + Sync + 'static,
<A4 as FromRequestParts<S>>::Rejection: 'static,
A5: FromRequestParts<S> + Send + Sync + 'static,
<A5 as FromRequestParts<S>>::Rejection: 'static,
A6: FromRequestParts<S> + Send + Sync + 'static,
<A6 as FromRequestParts<S>>::Rejection: 'static,
A7: FromRequestParts<S> + Send + Sync + 'static,
<A7 as FromRequestParts<S>>::Rejection: 'static,
A8: FromRequestParts<S> + Send + Sync + 'static,
<A8 as FromRequestParts<S>>::Rejection: 'static,
Req: Message + DeserializeOwned + Default + Send + 'static,
Resp: Message + Serialize + Send + Clone + Sync + 'static,
Source§type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
The type of future calling this handler returns.
Source§fn call(self, req: Request, state: S) -> Self::Future
fn call(self, req: Request, state: S) -> Self::Future
Call the handler with the given request.
Source§fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
Apply a
tower::Layer to the handler. Read moreSource§fn with_state(self, state: S) -> HandlerService<Self, T, S>
fn with_state(self, state: S) -> HandlerService<Self, T, S>
Convert the handler into a
Service by providing the stateSource§impl<F, Fut, S, Req, Resp, St, A1, A2, A3, A4, A5, A6, A7, A8> Handler<(A1, A2, A3, A4, A5, A6, A7, A8, ConnectRequest<Streaming<Req>>, StreamBody<St>), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, A3, A4, A5, A6, A7, A8, ConnectRequest<Streaming<Req>>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<StreamBody<St>>, ConnectError>> + Send + 'static,
St: Stream<Item = Result<Resp, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
A3: FromRequestParts<S> + Send + Sync + 'static,
<A3 as FromRequestParts<S>>::Rejection: 'static,
A4: FromRequestParts<S> + Send + Sync + 'static,
<A4 as FromRequestParts<S>>::Rejection: 'static,
A5: FromRequestParts<S> + Send + Sync + 'static,
<A5 as FromRequestParts<S>>::Rejection: 'static,
A6: FromRequestParts<S> + Send + Sync + 'static,
<A6 as FromRequestParts<S>>::Rejection: 'static,
A7: FromRequestParts<S> + Send + Sync + 'static,
<A7 as FromRequestParts<S>>::Rejection: 'static,
A8: FromRequestParts<S> + Send + Sync + 'static,
<A8 as FromRequestParts<S>>::Rejection: 'static,
Req: Message + DeserializeOwned + Default + Send + 'static,
Resp: Message + Serialize + Send + Sync + 'static,
impl<F, Fut, S, Req, Resp, St, A1, A2, A3, A4, A5, A6, A7, A8> Handler<(A1, A2, A3, A4, A5, A6, A7, A8, ConnectRequest<Streaming<Req>>, StreamBody<St>), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, A3, A4, A5, A6, A7, A8, ConnectRequest<Streaming<Req>>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<StreamBody<St>>, ConnectError>> + Send + 'static,
St: Stream<Item = Result<Resp, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
A3: FromRequestParts<S> + Send + Sync + 'static,
<A3 as FromRequestParts<S>>::Rejection: 'static,
A4: FromRequestParts<S> + Send + Sync + 'static,
<A4 as FromRequestParts<S>>::Rejection: 'static,
A5: FromRequestParts<S> + Send + Sync + 'static,
<A5 as FromRequestParts<S>>::Rejection: 'static,
A6: FromRequestParts<S> + Send + Sync + 'static,
<A6 as FromRequestParts<S>>::Rejection: 'static,
A7: FromRequestParts<S> + Send + Sync + 'static,
<A7 as FromRequestParts<S>>::Rejection: 'static,
A8: FromRequestParts<S> + Send + Sync + 'static,
<A8 as FromRequestParts<S>>::Rejection: 'static,
Req: Message + DeserializeOwned + Default + Send + 'static,
Resp: Message + Serialize + Send + Sync + 'static,
Source§type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
The type of future calling this handler returns.
Source§fn call(self, req: Request, state: S) -> Self::Future
fn call(self, req: Request, state: S) -> Self::Future
Call the handler with the given request.
Source§fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
Apply a
tower::Layer to the handler. Read moreSource§fn with_state(self, state: S) -> HandlerService<Self, T, S>
fn with_state(self, state: S) -> HandlerService<Self, T, S>
Convert the handler into a
Service by providing the stateSource§impl<F, Fut, S, Req, Resp, A1, A2, A3, A4, A5, A6, A7> Handler<(A1, A2, A3, A4, A5, A6, A7, ConnectRequest<Req>), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, A3, A4, A5, A6, A7, ConnectRequest<Req>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<Resp>, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
A3: FromRequestParts<S> + Send + Sync + 'static,
<A3 as FromRequestParts<S>>::Rejection: 'static,
A4: FromRequestParts<S> + Send + Sync + 'static,
<A4 as FromRequestParts<S>>::Rejection: 'static,
A5: FromRequestParts<S> + Send + Sync + 'static,
<A5 as FromRequestParts<S>>::Rejection: 'static,
A6: FromRequestParts<S> + Send + Sync + 'static,
<A6 as FromRequestParts<S>>::Rejection: 'static,
A7: FromRequestParts<S> + Send + Sync + 'static,
<A7 as FromRequestParts<S>>::Rejection: 'static,
ConnectRequest<Req>: FromRequest<S>,
Req: Send + Sync + 'static,
Resp: Message + Serialize + Send + Clone + Sync + 'static,
impl<F, Fut, S, Req, Resp, A1, A2, A3, A4, A5, A6, A7> Handler<(A1, A2, A3, A4, A5, A6, A7, ConnectRequest<Req>), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, A3, A4, A5, A6, A7, ConnectRequest<Req>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<Resp>, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
A3: FromRequestParts<S> + Send + Sync + 'static,
<A3 as FromRequestParts<S>>::Rejection: 'static,
A4: FromRequestParts<S> + Send + Sync + 'static,
<A4 as FromRequestParts<S>>::Rejection: 'static,
A5: FromRequestParts<S> + Send + Sync + 'static,
<A5 as FromRequestParts<S>>::Rejection: 'static,
A6: FromRequestParts<S> + Send + Sync + 'static,
<A6 as FromRequestParts<S>>::Rejection: 'static,
A7: FromRequestParts<S> + Send + Sync + 'static,
<A7 as FromRequestParts<S>>::Rejection: 'static,
ConnectRequest<Req>: FromRequest<S>,
Req: Send + Sync + 'static,
Resp: Message + Serialize + Send + Clone + Sync + 'static,
Source§type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
The type of future calling this handler returns.
Source§fn call(self, req: Request, state: S) -> Self::Future
fn call(self, req: Request, state: S) -> Self::Future
Call the handler with the given request.
Source§fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
Apply a
tower::Layer to the handler. Read moreSource§fn with_state(self, state: S) -> HandlerService<Self, T, S>
fn with_state(self, state: S) -> HandlerService<Self, T, S>
Convert the handler into a
Service by providing the stateSource§impl<F, Fut, S, Req, Resp, St, A1, A2, A3, A4, A5, A6, A7> Handler<(A1, A2, A3, A4, A5, A6, A7, ConnectRequest<Req>, StreamBody<St>), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, A3, A4, A5, A6, A7, ConnectRequest<Req>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<StreamBody<St>>, ConnectError>> + Send + 'static,
St: Stream<Item = Result<Resp, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
A3: FromRequestParts<S> + Send + Sync + 'static,
<A3 as FromRequestParts<S>>::Rejection: 'static,
A4: FromRequestParts<S> + Send + Sync + 'static,
<A4 as FromRequestParts<S>>::Rejection: 'static,
A5: FromRequestParts<S> + Send + Sync + 'static,
<A5 as FromRequestParts<S>>::Rejection: 'static,
A6: FromRequestParts<S> + Send + Sync + 'static,
<A6 as FromRequestParts<S>>::Rejection: 'static,
A7: FromRequestParts<S> + Send + Sync + 'static,
<A7 as FromRequestParts<S>>::Rejection: 'static,
Req: Message + DeserializeOwned + Default + Send + Sync + 'static,
Resp: Message + Serialize + Send + Sync + 'static,
impl<F, Fut, S, Req, Resp, St, A1, A2, A3, A4, A5, A6, A7> Handler<(A1, A2, A3, A4, A5, A6, A7, ConnectRequest<Req>, StreamBody<St>), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, A3, A4, A5, A6, A7, ConnectRequest<Req>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<StreamBody<St>>, ConnectError>> + Send + 'static,
St: Stream<Item = Result<Resp, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
A3: FromRequestParts<S> + Send + Sync + 'static,
<A3 as FromRequestParts<S>>::Rejection: 'static,
A4: FromRequestParts<S> + Send + Sync + 'static,
<A4 as FromRequestParts<S>>::Rejection: 'static,
A5: FromRequestParts<S> + Send + Sync + 'static,
<A5 as FromRequestParts<S>>::Rejection: 'static,
A6: FromRequestParts<S> + Send + Sync + 'static,
<A6 as FromRequestParts<S>>::Rejection: 'static,
A7: FromRequestParts<S> + Send + Sync + 'static,
<A7 as FromRequestParts<S>>::Rejection: 'static,
Req: Message + DeserializeOwned + Default + Send + Sync + 'static,
Resp: Message + Serialize + Send + Sync + 'static,
Source§type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
The type of future calling this handler returns.
Source§fn call(self, req: Request, state: S) -> Self::Future
fn call(self, req: Request, state: S) -> Self::Future
Call the handler with the given request.
Source§fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
Apply a
tower::Layer to the handler. Read moreSource§fn with_state(self, state: S) -> HandlerService<Self, T, S>
fn with_state(self, state: S) -> HandlerService<Self, T, S>
Convert the handler into a
Service by providing the stateSource§impl<F, Fut, S, Req, Resp, A1, A2, A3, A4, A5, A6, A7> Handler<(A1, A2, A3, A4, A5, A6, A7, ConnectRequest<Streaming<Req>>, Resp), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, A3, A4, A5, A6, A7, ConnectRequest<Streaming<Req>>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<Resp>, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
A3: FromRequestParts<S> + Send + Sync + 'static,
<A3 as FromRequestParts<S>>::Rejection: 'static,
A4: FromRequestParts<S> + Send + Sync + 'static,
<A4 as FromRequestParts<S>>::Rejection: 'static,
A5: FromRequestParts<S> + Send + Sync + 'static,
<A5 as FromRequestParts<S>>::Rejection: 'static,
A6: FromRequestParts<S> + Send + Sync + 'static,
<A6 as FromRequestParts<S>>::Rejection: 'static,
A7: FromRequestParts<S> + Send + Sync + 'static,
<A7 as FromRequestParts<S>>::Rejection: 'static,
Req: Message + DeserializeOwned + Default + Send + 'static,
Resp: Message + Serialize + Send + Clone + Sync + 'static,
impl<F, Fut, S, Req, Resp, A1, A2, A3, A4, A5, A6, A7> Handler<(A1, A2, A3, A4, A5, A6, A7, ConnectRequest<Streaming<Req>>, Resp), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, A3, A4, A5, A6, A7, ConnectRequest<Streaming<Req>>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<Resp>, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
A3: FromRequestParts<S> + Send + Sync + 'static,
<A3 as FromRequestParts<S>>::Rejection: 'static,
A4: FromRequestParts<S> + Send + Sync + 'static,
<A4 as FromRequestParts<S>>::Rejection: 'static,
A5: FromRequestParts<S> + Send + Sync + 'static,
<A5 as FromRequestParts<S>>::Rejection: 'static,
A6: FromRequestParts<S> + Send + Sync + 'static,
<A6 as FromRequestParts<S>>::Rejection: 'static,
A7: FromRequestParts<S> + Send + Sync + 'static,
<A7 as FromRequestParts<S>>::Rejection: 'static,
Req: Message + DeserializeOwned + Default + Send + 'static,
Resp: Message + Serialize + Send + Clone + Sync + 'static,
Source§type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
The type of future calling this handler returns.
Source§fn call(self, req: Request, state: S) -> Self::Future
fn call(self, req: Request, state: S) -> Self::Future
Call the handler with the given request.
Source§fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
Apply a
tower::Layer to the handler. Read moreSource§fn with_state(self, state: S) -> HandlerService<Self, T, S>
fn with_state(self, state: S) -> HandlerService<Self, T, S>
Convert the handler into a
Service by providing the stateSource§impl<F, Fut, S, Req, Resp, St, A1, A2, A3, A4, A5, A6, A7> Handler<(A1, A2, A3, A4, A5, A6, A7, ConnectRequest<Streaming<Req>>, StreamBody<St>), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, A3, A4, A5, A6, A7, ConnectRequest<Streaming<Req>>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<StreamBody<St>>, ConnectError>> + Send + 'static,
St: Stream<Item = Result<Resp, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
A3: FromRequestParts<S> + Send + Sync + 'static,
<A3 as FromRequestParts<S>>::Rejection: 'static,
A4: FromRequestParts<S> + Send + Sync + 'static,
<A4 as FromRequestParts<S>>::Rejection: 'static,
A5: FromRequestParts<S> + Send + Sync + 'static,
<A5 as FromRequestParts<S>>::Rejection: 'static,
A6: FromRequestParts<S> + Send + Sync + 'static,
<A6 as FromRequestParts<S>>::Rejection: 'static,
A7: FromRequestParts<S> + Send + Sync + 'static,
<A7 as FromRequestParts<S>>::Rejection: 'static,
Req: Message + DeserializeOwned + Default + Send + 'static,
Resp: Message + Serialize + Send + Sync + 'static,
impl<F, Fut, S, Req, Resp, St, A1, A2, A3, A4, A5, A6, A7> Handler<(A1, A2, A3, A4, A5, A6, A7, ConnectRequest<Streaming<Req>>, StreamBody<St>), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, A3, A4, A5, A6, A7, ConnectRequest<Streaming<Req>>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<StreamBody<St>>, ConnectError>> + Send + 'static,
St: Stream<Item = Result<Resp, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
A3: FromRequestParts<S> + Send + Sync + 'static,
<A3 as FromRequestParts<S>>::Rejection: 'static,
A4: FromRequestParts<S> + Send + Sync + 'static,
<A4 as FromRequestParts<S>>::Rejection: 'static,
A5: FromRequestParts<S> + Send + Sync + 'static,
<A5 as FromRequestParts<S>>::Rejection: 'static,
A6: FromRequestParts<S> + Send + Sync + 'static,
<A6 as FromRequestParts<S>>::Rejection: 'static,
A7: FromRequestParts<S> + Send + Sync + 'static,
<A7 as FromRequestParts<S>>::Rejection: 'static,
Req: Message + DeserializeOwned + Default + Send + 'static,
Resp: Message + Serialize + Send + Sync + 'static,
Source§type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
The type of future calling this handler returns.
Source§fn call(self, req: Request, state: S) -> Self::Future
fn call(self, req: Request, state: S) -> Self::Future
Call the handler with the given request.
Source§fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
Apply a
tower::Layer to the handler. Read moreSource§fn with_state(self, state: S) -> HandlerService<Self, T, S>
fn with_state(self, state: S) -> HandlerService<Self, T, S>
Convert the handler into a
Service by providing the stateSource§impl<F, Fut, S, Req, Resp, A1, A2, A3, A4, A5, A6> Handler<(A1, A2, A3, A4, A5, A6, ConnectRequest<Req>), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, A3, A4, A5, A6, ConnectRequest<Req>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<Resp>, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
A3: FromRequestParts<S> + Send + Sync + 'static,
<A3 as FromRequestParts<S>>::Rejection: 'static,
A4: FromRequestParts<S> + Send + Sync + 'static,
<A4 as FromRequestParts<S>>::Rejection: 'static,
A5: FromRequestParts<S> + Send + Sync + 'static,
<A5 as FromRequestParts<S>>::Rejection: 'static,
A6: FromRequestParts<S> + Send + Sync + 'static,
<A6 as FromRequestParts<S>>::Rejection: 'static,
ConnectRequest<Req>: FromRequest<S>,
Req: Send + Sync + 'static,
Resp: Message + Serialize + Send + Clone + Sync + 'static,
impl<F, Fut, S, Req, Resp, A1, A2, A3, A4, A5, A6> Handler<(A1, A2, A3, A4, A5, A6, ConnectRequest<Req>), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, A3, A4, A5, A6, ConnectRequest<Req>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<Resp>, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
A3: FromRequestParts<S> + Send + Sync + 'static,
<A3 as FromRequestParts<S>>::Rejection: 'static,
A4: FromRequestParts<S> + Send + Sync + 'static,
<A4 as FromRequestParts<S>>::Rejection: 'static,
A5: FromRequestParts<S> + Send + Sync + 'static,
<A5 as FromRequestParts<S>>::Rejection: 'static,
A6: FromRequestParts<S> + Send + Sync + 'static,
<A6 as FromRequestParts<S>>::Rejection: 'static,
ConnectRequest<Req>: FromRequest<S>,
Req: Send + Sync + 'static,
Resp: Message + Serialize + Send + Clone + Sync + 'static,
Source§type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
The type of future calling this handler returns.
Source§fn call(self, req: Request, state: S) -> Self::Future
fn call(self, req: Request, state: S) -> Self::Future
Call the handler with the given request.
Source§fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
Apply a
tower::Layer to the handler. Read moreSource§fn with_state(self, state: S) -> HandlerService<Self, T, S>
fn with_state(self, state: S) -> HandlerService<Self, T, S>
Convert the handler into a
Service by providing the stateSource§impl<F, Fut, S, Req, Resp, St, A1, A2, A3, A4, A5, A6> Handler<(A1, A2, A3, A4, A5, A6, ConnectRequest<Req>, StreamBody<St>), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, A3, A4, A5, A6, ConnectRequest<Req>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<StreamBody<St>>, ConnectError>> + Send + 'static,
St: Stream<Item = Result<Resp, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
A3: FromRequestParts<S> + Send + Sync + 'static,
<A3 as FromRequestParts<S>>::Rejection: 'static,
A4: FromRequestParts<S> + Send + Sync + 'static,
<A4 as FromRequestParts<S>>::Rejection: 'static,
A5: FromRequestParts<S> + Send + Sync + 'static,
<A5 as FromRequestParts<S>>::Rejection: 'static,
A6: FromRequestParts<S> + Send + Sync + 'static,
<A6 as FromRequestParts<S>>::Rejection: 'static,
Req: Message + DeserializeOwned + Default + Send + Sync + 'static,
Resp: Message + Serialize + Send + Sync + 'static,
impl<F, Fut, S, Req, Resp, St, A1, A2, A3, A4, A5, A6> Handler<(A1, A2, A3, A4, A5, A6, ConnectRequest<Req>, StreamBody<St>), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, A3, A4, A5, A6, ConnectRequest<Req>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<StreamBody<St>>, ConnectError>> + Send + 'static,
St: Stream<Item = Result<Resp, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
A3: FromRequestParts<S> + Send + Sync + 'static,
<A3 as FromRequestParts<S>>::Rejection: 'static,
A4: FromRequestParts<S> + Send + Sync + 'static,
<A4 as FromRequestParts<S>>::Rejection: 'static,
A5: FromRequestParts<S> + Send + Sync + 'static,
<A5 as FromRequestParts<S>>::Rejection: 'static,
A6: FromRequestParts<S> + Send + Sync + 'static,
<A6 as FromRequestParts<S>>::Rejection: 'static,
Req: Message + DeserializeOwned + Default + Send + Sync + 'static,
Resp: Message + Serialize + Send + Sync + 'static,
Source§type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
The type of future calling this handler returns.
Source§fn call(self, req: Request, state: S) -> Self::Future
fn call(self, req: Request, state: S) -> Self::Future
Call the handler with the given request.
Source§fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
Apply a
tower::Layer to the handler. Read moreSource§fn with_state(self, state: S) -> HandlerService<Self, T, S>
fn with_state(self, state: S) -> HandlerService<Self, T, S>
Convert the handler into a
Service by providing the stateSource§impl<F, Fut, S, Req, Resp, A1, A2, A3, A4, A5, A6> Handler<(A1, A2, A3, A4, A5, A6, ConnectRequest<Streaming<Req>>, Resp), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, A3, A4, A5, A6, ConnectRequest<Streaming<Req>>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<Resp>, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
A3: FromRequestParts<S> + Send + Sync + 'static,
<A3 as FromRequestParts<S>>::Rejection: 'static,
A4: FromRequestParts<S> + Send + Sync + 'static,
<A4 as FromRequestParts<S>>::Rejection: 'static,
A5: FromRequestParts<S> + Send + Sync + 'static,
<A5 as FromRequestParts<S>>::Rejection: 'static,
A6: FromRequestParts<S> + Send + Sync + 'static,
<A6 as FromRequestParts<S>>::Rejection: 'static,
Req: Message + DeserializeOwned + Default + Send + 'static,
Resp: Message + Serialize + Send + Clone + Sync + 'static,
impl<F, Fut, S, Req, Resp, A1, A2, A3, A4, A5, A6> Handler<(A1, A2, A3, A4, A5, A6, ConnectRequest<Streaming<Req>>, Resp), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, A3, A4, A5, A6, ConnectRequest<Streaming<Req>>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<Resp>, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
A3: FromRequestParts<S> + Send + Sync + 'static,
<A3 as FromRequestParts<S>>::Rejection: 'static,
A4: FromRequestParts<S> + Send + Sync + 'static,
<A4 as FromRequestParts<S>>::Rejection: 'static,
A5: FromRequestParts<S> + Send + Sync + 'static,
<A5 as FromRequestParts<S>>::Rejection: 'static,
A6: FromRequestParts<S> + Send + Sync + 'static,
<A6 as FromRequestParts<S>>::Rejection: 'static,
Req: Message + DeserializeOwned + Default + Send + 'static,
Resp: Message + Serialize + Send + Clone + Sync + 'static,
Source§type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
The type of future calling this handler returns.
Source§fn call(self, req: Request, state: S) -> Self::Future
fn call(self, req: Request, state: S) -> Self::Future
Call the handler with the given request.
Source§fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
Apply a
tower::Layer to the handler. Read moreSource§fn with_state(self, state: S) -> HandlerService<Self, T, S>
fn with_state(self, state: S) -> HandlerService<Self, T, S>
Convert the handler into a
Service by providing the stateSource§impl<F, Fut, S, Req, Resp, St, A1, A2, A3, A4, A5, A6> Handler<(A1, A2, A3, A4, A5, A6, ConnectRequest<Streaming<Req>>, StreamBody<St>), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, A3, A4, A5, A6, ConnectRequest<Streaming<Req>>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<StreamBody<St>>, ConnectError>> + Send + 'static,
St: Stream<Item = Result<Resp, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
A3: FromRequestParts<S> + Send + Sync + 'static,
<A3 as FromRequestParts<S>>::Rejection: 'static,
A4: FromRequestParts<S> + Send + Sync + 'static,
<A4 as FromRequestParts<S>>::Rejection: 'static,
A5: FromRequestParts<S> + Send + Sync + 'static,
<A5 as FromRequestParts<S>>::Rejection: 'static,
A6: FromRequestParts<S> + Send + Sync + 'static,
<A6 as FromRequestParts<S>>::Rejection: 'static,
Req: Message + DeserializeOwned + Default + Send + 'static,
Resp: Message + Serialize + Send + Sync + 'static,
impl<F, Fut, S, Req, Resp, St, A1, A2, A3, A4, A5, A6> Handler<(A1, A2, A3, A4, A5, A6, ConnectRequest<Streaming<Req>>, StreamBody<St>), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, A3, A4, A5, A6, ConnectRequest<Streaming<Req>>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<StreamBody<St>>, ConnectError>> + Send + 'static,
St: Stream<Item = Result<Resp, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
A3: FromRequestParts<S> + Send + Sync + 'static,
<A3 as FromRequestParts<S>>::Rejection: 'static,
A4: FromRequestParts<S> + Send + Sync + 'static,
<A4 as FromRequestParts<S>>::Rejection: 'static,
A5: FromRequestParts<S> + Send + Sync + 'static,
<A5 as FromRequestParts<S>>::Rejection: 'static,
A6: FromRequestParts<S> + Send + Sync + 'static,
<A6 as FromRequestParts<S>>::Rejection: 'static,
Req: Message + DeserializeOwned + Default + Send + 'static,
Resp: Message + Serialize + Send + Sync + 'static,
Source§type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
The type of future calling this handler returns.
Source§fn call(self, req: Request, state: S) -> Self::Future
fn call(self, req: Request, state: S) -> Self::Future
Call the handler with the given request.
Source§fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
Apply a
tower::Layer to the handler. Read moreSource§fn with_state(self, state: S) -> HandlerService<Self, T, S>
fn with_state(self, state: S) -> HandlerService<Self, T, S>
Convert the handler into a
Service by providing the stateSource§impl<F, Fut, S, Req, Resp, A1, A2, A3, A4, A5> Handler<(A1, A2, A3, A4, A5, ConnectRequest<Req>), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, A3, A4, A5, ConnectRequest<Req>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<Resp>, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
A3: FromRequestParts<S> + Send + Sync + 'static,
<A3 as FromRequestParts<S>>::Rejection: 'static,
A4: FromRequestParts<S> + Send + Sync + 'static,
<A4 as FromRequestParts<S>>::Rejection: 'static,
A5: FromRequestParts<S> + Send + Sync + 'static,
<A5 as FromRequestParts<S>>::Rejection: 'static,
ConnectRequest<Req>: FromRequest<S>,
Req: Send + Sync + 'static,
Resp: Message + Serialize + Send + Clone + Sync + 'static,
impl<F, Fut, S, Req, Resp, A1, A2, A3, A4, A5> Handler<(A1, A2, A3, A4, A5, ConnectRequest<Req>), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, A3, A4, A5, ConnectRequest<Req>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<Resp>, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
A3: FromRequestParts<S> + Send + Sync + 'static,
<A3 as FromRequestParts<S>>::Rejection: 'static,
A4: FromRequestParts<S> + Send + Sync + 'static,
<A4 as FromRequestParts<S>>::Rejection: 'static,
A5: FromRequestParts<S> + Send + Sync + 'static,
<A5 as FromRequestParts<S>>::Rejection: 'static,
ConnectRequest<Req>: FromRequest<S>,
Req: Send + Sync + 'static,
Resp: Message + Serialize + Send + Clone + Sync + 'static,
Source§type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
The type of future calling this handler returns.
Source§fn call(self, req: Request, state: S) -> Self::Future
fn call(self, req: Request, state: S) -> Self::Future
Call the handler with the given request.
Source§fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
Apply a
tower::Layer to the handler. Read moreSource§fn with_state(self, state: S) -> HandlerService<Self, T, S>
fn with_state(self, state: S) -> HandlerService<Self, T, S>
Convert the handler into a
Service by providing the stateSource§impl<F, Fut, S, Req, Resp, St, A1, A2, A3, A4, A5> Handler<(A1, A2, A3, A4, A5, ConnectRequest<Req>, StreamBody<St>), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, A3, A4, A5, ConnectRequest<Req>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<StreamBody<St>>, ConnectError>> + Send + 'static,
St: Stream<Item = Result<Resp, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
A3: FromRequestParts<S> + Send + Sync + 'static,
<A3 as FromRequestParts<S>>::Rejection: 'static,
A4: FromRequestParts<S> + Send + Sync + 'static,
<A4 as FromRequestParts<S>>::Rejection: 'static,
A5: FromRequestParts<S> + Send + Sync + 'static,
<A5 as FromRequestParts<S>>::Rejection: 'static,
Req: Message + DeserializeOwned + Default + Send + Sync + 'static,
Resp: Message + Serialize + Send + Sync + 'static,
impl<F, Fut, S, Req, Resp, St, A1, A2, A3, A4, A5> Handler<(A1, A2, A3, A4, A5, ConnectRequest<Req>, StreamBody<St>), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, A3, A4, A5, ConnectRequest<Req>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<StreamBody<St>>, ConnectError>> + Send + 'static,
St: Stream<Item = Result<Resp, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
A3: FromRequestParts<S> + Send + Sync + 'static,
<A3 as FromRequestParts<S>>::Rejection: 'static,
A4: FromRequestParts<S> + Send + Sync + 'static,
<A4 as FromRequestParts<S>>::Rejection: 'static,
A5: FromRequestParts<S> + Send + Sync + 'static,
<A5 as FromRequestParts<S>>::Rejection: 'static,
Req: Message + DeserializeOwned + Default + Send + Sync + 'static,
Resp: Message + Serialize + Send + Sync + 'static,
Source§type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
The type of future calling this handler returns.
Source§fn call(self, req: Request, state: S) -> Self::Future
fn call(self, req: Request, state: S) -> Self::Future
Call the handler with the given request.
Source§fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
Apply a
tower::Layer to the handler. Read moreSource§fn with_state(self, state: S) -> HandlerService<Self, T, S>
fn with_state(self, state: S) -> HandlerService<Self, T, S>
Convert the handler into a
Service by providing the stateSource§impl<F, Fut, S, Req, Resp, A1, A2, A3, A4, A5> Handler<(A1, A2, A3, A4, A5, ConnectRequest<Streaming<Req>>, Resp), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, A3, A4, A5, ConnectRequest<Streaming<Req>>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<Resp>, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
A3: FromRequestParts<S> + Send + Sync + 'static,
<A3 as FromRequestParts<S>>::Rejection: 'static,
A4: FromRequestParts<S> + Send + Sync + 'static,
<A4 as FromRequestParts<S>>::Rejection: 'static,
A5: FromRequestParts<S> + Send + Sync + 'static,
<A5 as FromRequestParts<S>>::Rejection: 'static,
Req: Message + DeserializeOwned + Default + Send + 'static,
Resp: Message + Serialize + Send + Clone + Sync + 'static,
impl<F, Fut, S, Req, Resp, A1, A2, A3, A4, A5> Handler<(A1, A2, A3, A4, A5, ConnectRequest<Streaming<Req>>, Resp), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, A3, A4, A5, ConnectRequest<Streaming<Req>>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<Resp>, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
A3: FromRequestParts<S> + Send + Sync + 'static,
<A3 as FromRequestParts<S>>::Rejection: 'static,
A4: FromRequestParts<S> + Send + Sync + 'static,
<A4 as FromRequestParts<S>>::Rejection: 'static,
A5: FromRequestParts<S> + Send + Sync + 'static,
<A5 as FromRequestParts<S>>::Rejection: 'static,
Req: Message + DeserializeOwned + Default + Send + 'static,
Resp: Message + Serialize + Send + Clone + Sync + 'static,
Source§type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
The type of future calling this handler returns.
Source§fn call(self, req: Request, state: S) -> Self::Future
fn call(self, req: Request, state: S) -> Self::Future
Call the handler with the given request.
Source§fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
Apply a
tower::Layer to the handler. Read moreSource§fn with_state(self, state: S) -> HandlerService<Self, T, S>
fn with_state(self, state: S) -> HandlerService<Self, T, S>
Convert the handler into a
Service by providing the stateSource§impl<F, Fut, S, Req, Resp, St, A1, A2, A3, A4, A5> Handler<(A1, A2, A3, A4, A5, ConnectRequest<Streaming<Req>>, StreamBody<St>), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, A3, A4, A5, ConnectRequest<Streaming<Req>>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<StreamBody<St>>, ConnectError>> + Send + 'static,
St: Stream<Item = Result<Resp, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
A3: FromRequestParts<S> + Send + Sync + 'static,
<A3 as FromRequestParts<S>>::Rejection: 'static,
A4: FromRequestParts<S> + Send + Sync + 'static,
<A4 as FromRequestParts<S>>::Rejection: 'static,
A5: FromRequestParts<S> + Send + Sync + 'static,
<A5 as FromRequestParts<S>>::Rejection: 'static,
Req: Message + DeserializeOwned + Default + Send + 'static,
Resp: Message + Serialize + Send + Sync + 'static,
impl<F, Fut, S, Req, Resp, St, A1, A2, A3, A4, A5> Handler<(A1, A2, A3, A4, A5, ConnectRequest<Streaming<Req>>, StreamBody<St>), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, A3, A4, A5, ConnectRequest<Streaming<Req>>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<StreamBody<St>>, ConnectError>> + Send + 'static,
St: Stream<Item = Result<Resp, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
A3: FromRequestParts<S> + Send + Sync + 'static,
<A3 as FromRequestParts<S>>::Rejection: 'static,
A4: FromRequestParts<S> + Send + Sync + 'static,
<A4 as FromRequestParts<S>>::Rejection: 'static,
A5: FromRequestParts<S> + Send + Sync + 'static,
<A5 as FromRequestParts<S>>::Rejection: 'static,
Req: Message + DeserializeOwned + Default + Send + 'static,
Resp: Message + Serialize + Send + Sync + 'static,
Source§type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
The type of future calling this handler returns.
Source§fn call(self, req: Request, state: S) -> Self::Future
fn call(self, req: Request, state: S) -> Self::Future
Call the handler with the given request.
Source§fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
Apply a
tower::Layer to the handler. Read moreSource§fn with_state(self, state: S) -> HandlerService<Self, T, S>
fn with_state(self, state: S) -> HandlerService<Self, T, S>
Convert the handler into a
Service by providing the stateSource§impl<F, Fut, S, Req, Resp, A1, A2, A3, A4> Handler<(A1, A2, A3, A4, ConnectRequest<Req>), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, A3, A4, ConnectRequest<Req>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<Resp>, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
A3: FromRequestParts<S> + Send + Sync + 'static,
<A3 as FromRequestParts<S>>::Rejection: 'static,
A4: FromRequestParts<S> + Send + Sync + 'static,
<A4 as FromRequestParts<S>>::Rejection: 'static,
ConnectRequest<Req>: FromRequest<S>,
Req: Send + Sync + 'static,
Resp: Message + Serialize + Send + Clone + Sync + 'static,
impl<F, Fut, S, Req, Resp, A1, A2, A3, A4> Handler<(A1, A2, A3, A4, ConnectRequest<Req>), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, A3, A4, ConnectRequest<Req>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<Resp>, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
A3: FromRequestParts<S> + Send + Sync + 'static,
<A3 as FromRequestParts<S>>::Rejection: 'static,
A4: FromRequestParts<S> + Send + Sync + 'static,
<A4 as FromRequestParts<S>>::Rejection: 'static,
ConnectRequest<Req>: FromRequest<S>,
Req: Send + Sync + 'static,
Resp: Message + Serialize + Send + Clone + Sync + 'static,
Source§type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
The type of future calling this handler returns.
Source§fn call(self, req: Request, state: S) -> Self::Future
fn call(self, req: Request, state: S) -> Self::Future
Call the handler with the given request.
Source§fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
Apply a
tower::Layer to the handler. Read moreSource§fn with_state(self, state: S) -> HandlerService<Self, T, S>
fn with_state(self, state: S) -> HandlerService<Self, T, S>
Convert the handler into a
Service by providing the stateSource§impl<F, Fut, S, Req, Resp, St, A1, A2, A3, A4> Handler<(A1, A2, A3, A4, ConnectRequest<Req>, StreamBody<St>), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, A3, A4, ConnectRequest<Req>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<StreamBody<St>>, ConnectError>> + Send + 'static,
St: Stream<Item = Result<Resp, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
A3: FromRequestParts<S> + Send + Sync + 'static,
<A3 as FromRequestParts<S>>::Rejection: 'static,
A4: FromRequestParts<S> + Send + Sync + 'static,
<A4 as FromRequestParts<S>>::Rejection: 'static,
Req: Message + DeserializeOwned + Default + Send + Sync + 'static,
Resp: Message + Serialize + Send + Sync + 'static,
impl<F, Fut, S, Req, Resp, St, A1, A2, A3, A4> Handler<(A1, A2, A3, A4, ConnectRequest<Req>, StreamBody<St>), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, A3, A4, ConnectRequest<Req>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<StreamBody<St>>, ConnectError>> + Send + 'static,
St: Stream<Item = Result<Resp, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
A3: FromRequestParts<S> + Send + Sync + 'static,
<A3 as FromRequestParts<S>>::Rejection: 'static,
A4: FromRequestParts<S> + Send + Sync + 'static,
<A4 as FromRequestParts<S>>::Rejection: 'static,
Req: Message + DeserializeOwned + Default + Send + Sync + 'static,
Resp: Message + Serialize + Send + Sync + 'static,
Source§type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
The type of future calling this handler returns.
Source§fn call(self, req: Request, state: S) -> Self::Future
fn call(self, req: Request, state: S) -> Self::Future
Call the handler with the given request.
Source§fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
Apply a
tower::Layer to the handler. Read moreSource§fn with_state(self, state: S) -> HandlerService<Self, T, S>
fn with_state(self, state: S) -> HandlerService<Self, T, S>
Convert the handler into a
Service by providing the stateSource§impl<F, Fut, S, Req, Resp, A1, A2, A3, A4> Handler<(A1, A2, A3, A4, ConnectRequest<Streaming<Req>>, Resp), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, A3, A4, ConnectRequest<Streaming<Req>>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<Resp>, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
A3: FromRequestParts<S> + Send + Sync + 'static,
<A3 as FromRequestParts<S>>::Rejection: 'static,
A4: FromRequestParts<S> + Send + Sync + 'static,
<A4 as FromRequestParts<S>>::Rejection: 'static,
Req: Message + DeserializeOwned + Default + Send + 'static,
Resp: Message + Serialize + Send + Clone + Sync + 'static,
impl<F, Fut, S, Req, Resp, A1, A2, A3, A4> Handler<(A1, A2, A3, A4, ConnectRequest<Streaming<Req>>, Resp), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, A3, A4, ConnectRequest<Streaming<Req>>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<Resp>, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
A3: FromRequestParts<S> + Send + Sync + 'static,
<A3 as FromRequestParts<S>>::Rejection: 'static,
A4: FromRequestParts<S> + Send + Sync + 'static,
<A4 as FromRequestParts<S>>::Rejection: 'static,
Req: Message + DeserializeOwned + Default + Send + 'static,
Resp: Message + Serialize + Send + Clone + Sync + 'static,
Source§type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
The type of future calling this handler returns.
Source§fn call(self, req: Request, state: S) -> Self::Future
fn call(self, req: Request, state: S) -> Self::Future
Call the handler with the given request.
Source§fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
Apply a
tower::Layer to the handler. Read moreSource§fn with_state(self, state: S) -> HandlerService<Self, T, S>
fn with_state(self, state: S) -> HandlerService<Self, T, S>
Convert the handler into a
Service by providing the stateSource§impl<F, Fut, S, Req, Resp, St, A1, A2, A3, A4> Handler<(A1, A2, A3, A4, ConnectRequest<Streaming<Req>>, StreamBody<St>), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, A3, A4, ConnectRequest<Streaming<Req>>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<StreamBody<St>>, ConnectError>> + Send + 'static,
St: Stream<Item = Result<Resp, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
A3: FromRequestParts<S> + Send + Sync + 'static,
<A3 as FromRequestParts<S>>::Rejection: 'static,
A4: FromRequestParts<S> + Send + Sync + 'static,
<A4 as FromRequestParts<S>>::Rejection: 'static,
Req: Message + DeserializeOwned + Default + Send + 'static,
Resp: Message + Serialize + Send + Sync + 'static,
impl<F, Fut, S, Req, Resp, St, A1, A2, A3, A4> Handler<(A1, A2, A3, A4, ConnectRequest<Streaming<Req>>, StreamBody<St>), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, A3, A4, ConnectRequest<Streaming<Req>>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<StreamBody<St>>, ConnectError>> + Send + 'static,
St: Stream<Item = Result<Resp, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
A3: FromRequestParts<S> + Send + Sync + 'static,
<A3 as FromRequestParts<S>>::Rejection: 'static,
A4: FromRequestParts<S> + Send + Sync + 'static,
<A4 as FromRequestParts<S>>::Rejection: 'static,
Req: Message + DeserializeOwned + Default + Send + 'static,
Resp: Message + Serialize + Send + Sync + 'static,
Source§type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
The type of future calling this handler returns.
Source§fn call(self, req: Request, state: S) -> Self::Future
fn call(self, req: Request, state: S) -> Self::Future
Call the handler with the given request.
Source§fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
Apply a
tower::Layer to the handler. Read moreSource§fn with_state(self, state: S) -> HandlerService<Self, T, S>
fn with_state(self, state: S) -> HandlerService<Self, T, S>
Convert the handler into a
Service by providing the stateSource§impl<F, Fut, S, Req, Resp, A1, A2, A3> Handler<(A1, A2, A3, ConnectRequest<Req>), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, A3, ConnectRequest<Req>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<Resp>, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
A3: FromRequestParts<S> + Send + Sync + 'static,
<A3 as FromRequestParts<S>>::Rejection: 'static,
ConnectRequest<Req>: FromRequest<S>,
Req: Send + Sync + 'static,
Resp: Message + Serialize + Send + Clone + Sync + 'static,
impl<F, Fut, S, Req, Resp, A1, A2, A3> Handler<(A1, A2, A3, ConnectRequest<Req>), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, A3, ConnectRequest<Req>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<Resp>, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
A3: FromRequestParts<S> + Send + Sync + 'static,
<A3 as FromRequestParts<S>>::Rejection: 'static,
ConnectRequest<Req>: FromRequest<S>,
Req: Send + Sync + 'static,
Resp: Message + Serialize + Send + Clone + Sync + 'static,
Source§type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
The type of future calling this handler returns.
Source§fn call(self, req: Request, state: S) -> Self::Future
fn call(self, req: Request, state: S) -> Self::Future
Call the handler with the given request.
Source§fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
Apply a
tower::Layer to the handler. Read moreSource§fn with_state(self, state: S) -> HandlerService<Self, T, S>
fn with_state(self, state: S) -> HandlerService<Self, T, S>
Convert the handler into a
Service by providing the stateSource§impl<F, Fut, S, Req, Resp, St, A1, A2, A3> Handler<(A1, A2, A3, ConnectRequest<Req>, StreamBody<St>), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, A3, ConnectRequest<Req>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<StreamBody<St>>, ConnectError>> + Send + 'static,
St: Stream<Item = Result<Resp, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
A3: FromRequestParts<S> + Send + Sync + 'static,
<A3 as FromRequestParts<S>>::Rejection: 'static,
Req: Message + DeserializeOwned + Default + Send + Sync + 'static,
Resp: Message + Serialize + Send + Sync + 'static,
impl<F, Fut, S, Req, Resp, St, A1, A2, A3> Handler<(A1, A2, A3, ConnectRequest<Req>, StreamBody<St>), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, A3, ConnectRequest<Req>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<StreamBody<St>>, ConnectError>> + Send + 'static,
St: Stream<Item = Result<Resp, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
A3: FromRequestParts<S> + Send + Sync + 'static,
<A3 as FromRequestParts<S>>::Rejection: 'static,
Req: Message + DeserializeOwned + Default + Send + Sync + 'static,
Resp: Message + Serialize + Send + Sync + 'static,
Source§type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
The type of future calling this handler returns.
Source§fn call(self, req: Request, state: S) -> Self::Future
fn call(self, req: Request, state: S) -> Self::Future
Call the handler with the given request.
Source§fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
Apply a
tower::Layer to the handler. Read moreSource§fn with_state(self, state: S) -> HandlerService<Self, T, S>
fn with_state(self, state: S) -> HandlerService<Self, T, S>
Convert the handler into a
Service by providing the stateSource§impl<F, Fut, S, Req, Resp, A1, A2, A3> Handler<(A1, A2, A3, ConnectRequest<Streaming<Req>>, Resp), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, A3, ConnectRequest<Streaming<Req>>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<Resp>, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
A3: FromRequestParts<S> + Send + Sync + 'static,
<A3 as FromRequestParts<S>>::Rejection: 'static,
Req: Message + DeserializeOwned + Default + Send + 'static,
Resp: Message + Serialize + Send + Clone + Sync + 'static,
impl<F, Fut, S, Req, Resp, A1, A2, A3> Handler<(A1, A2, A3, ConnectRequest<Streaming<Req>>, Resp), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, A3, ConnectRequest<Streaming<Req>>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<Resp>, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
A3: FromRequestParts<S> + Send + Sync + 'static,
<A3 as FromRequestParts<S>>::Rejection: 'static,
Req: Message + DeserializeOwned + Default + Send + 'static,
Resp: Message + Serialize + Send + Clone + Sync + 'static,
Source§type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
The type of future calling this handler returns.
Source§fn call(self, req: Request, state: S) -> Self::Future
fn call(self, req: Request, state: S) -> Self::Future
Call the handler with the given request.
Source§fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
Apply a
tower::Layer to the handler. Read moreSource§fn with_state(self, state: S) -> HandlerService<Self, T, S>
fn with_state(self, state: S) -> HandlerService<Self, T, S>
Convert the handler into a
Service by providing the stateSource§impl<F, Fut, S, Req, Resp, St, A1, A2, A3> Handler<(A1, A2, A3, ConnectRequest<Streaming<Req>>, StreamBody<St>), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, A3, ConnectRequest<Streaming<Req>>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<StreamBody<St>>, ConnectError>> + Send + 'static,
St: Stream<Item = Result<Resp, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
A3: FromRequestParts<S> + Send + Sync + 'static,
<A3 as FromRequestParts<S>>::Rejection: 'static,
Req: Message + DeserializeOwned + Default + Send + 'static,
Resp: Message + Serialize + Send + Sync + 'static,
impl<F, Fut, S, Req, Resp, St, A1, A2, A3> Handler<(A1, A2, A3, ConnectRequest<Streaming<Req>>, StreamBody<St>), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, A3, ConnectRequest<Streaming<Req>>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<StreamBody<St>>, ConnectError>> + Send + 'static,
St: Stream<Item = Result<Resp, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
A3: FromRequestParts<S> + Send + Sync + 'static,
<A3 as FromRequestParts<S>>::Rejection: 'static,
Req: Message + DeserializeOwned + Default + Send + 'static,
Resp: Message + Serialize + Send + Sync + 'static,
Source§type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
The type of future calling this handler returns.
Source§fn call(self, req: Request, state: S) -> Self::Future
fn call(self, req: Request, state: S) -> Self::Future
Call the handler with the given request.
Source§fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
Apply a
tower::Layer to the handler. Read moreSource§fn with_state(self, state: S) -> HandlerService<Self, T, S>
fn with_state(self, state: S) -> HandlerService<Self, T, S>
Convert the handler into a
Service by providing the stateSource§impl<F, Fut, S, Req, Resp, A1, A2> Handler<(A1, A2, ConnectRequest<Req>), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, ConnectRequest<Req>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<Resp>, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
ConnectRequest<Req>: FromRequest<S>,
Req: Send + Sync + 'static,
Resp: Message + Serialize + Send + Clone + Sync + 'static,
impl<F, Fut, S, Req, Resp, A1, A2> Handler<(A1, A2, ConnectRequest<Req>), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, ConnectRequest<Req>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<Resp>, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
ConnectRequest<Req>: FromRequest<S>,
Req: Send + Sync + 'static,
Resp: Message + Serialize + Send + Clone + Sync + 'static,
Source§type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
The type of future calling this handler returns.
Source§fn call(self, req: Request, state: S) -> Self::Future
fn call(self, req: Request, state: S) -> Self::Future
Call the handler with the given request.
Source§fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
Apply a
tower::Layer to the handler. Read moreSource§fn with_state(self, state: S) -> HandlerService<Self, T, S>
fn with_state(self, state: S) -> HandlerService<Self, T, S>
Convert the handler into a
Service by providing the stateSource§impl<F, Fut, S, Req, Resp, St, A1, A2> Handler<(A1, A2, ConnectRequest<Req>, StreamBody<St>), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, ConnectRequest<Req>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<StreamBody<St>>, ConnectError>> + Send + 'static,
St: Stream<Item = Result<Resp, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
Req: Message + DeserializeOwned + Default + Send + Sync + 'static,
Resp: Message + Serialize + Send + Sync + 'static,
impl<F, Fut, S, Req, Resp, St, A1, A2> Handler<(A1, A2, ConnectRequest<Req>, StreamBody<St>), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, ConnectRequest<Req>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<StreamBody<St>>, ConnectError>> + Send + 'static,
St: Stream<Item = Result<Resp, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
Req: Message + DeserializeOwned + Default + Send + Sync + 'static,
Resp: Message + Serialize + Send + Sync + 'static,
Source§type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
The type of future calling this handler returns.
Source§fn call(self, req: Request, state: S) -> Self::Future
fn call(self, req: Request, state: S) -> Self::Future
Call the handler with the given request.
Source§fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
Apply a
tower::Layer to the handler. Read moreSource§fn with_state(self, state: S) -> HandlerService<Self, T, S>
fn with_state(self, state: S) -> HandlerService<Self, T, S>
Convert the handler into a
Service by providing the stateSource§impl<F, Fut, S, Req, Resp, A1, A2> Handler<(A1, A2, ConnectRequest<Streaming<Req>>, Resp), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, ConnectRequest<Streaming<Req>>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<Resp>, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
Req: Message + DeserializeOwned + Default + Send + 'static,
Resp: Message + Serialize + Send + Clone + Sync + 'static,
impl<F, Fut, S, Req, Resp, A1, A2> Handler<(A1, A2, ConnectRequest<Streaming<Req>>, Resp), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, ConnectRequest<Streaming<Req>>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<Resp>, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
Req: Message + DeserializeOwned + Default + Send + 'static,
Resp: Message + Serialize + Send + Clone + Sync + 'static,
Source§type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
The type of future calling this handler returns.
Source§fn call(self, req: Request, state: S) -> Self::Future
fn call(self, req: Request, state: S) -> Self::Future
Call the handler with the given request.
Source§fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
Apply a
tower::Layer to the handler. Read moreSource§fn with_state(self, state: S) -> HandlerService<Self, T, S>
fn with_state(self, state: S) -> HandlerService<Self, T, S>
Convert the handler into a
Service by providing the stateSource§impl<F, Fut, S, Req, Resp, St, A1, A2> Handler<(A1, A2, ConnectRequest<Streaming<Req>>, StreamBody<St>), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, ConnectRequest<Streaming<Req>>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<StreamBody<St>>, ConnectError>> + Send + 'static,
St: Stream<Item = Result<Resp, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
Req: Message + DeserializeOwned + Default + Send + 'static,
Resp: Message + Serialize + Send + Sync + 'static,
impl<F, Fut, S, Req, Resp, St, A1, A2> Handler<(A1, A2, ConnectRequest<Streaming<Req>>, StreamBody<St>), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, A2, ConnectRequest<Streaming<Req>>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<StreamBody<St>>, ConnectError>> + Send + 'static,
St: Stream<Item = Result<Resp, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
A2: FromRequestParts<S> + Send + Sync + 'static,
<A2 as FromRequestParts<S>>::Rejection: 'static,
Req: Message + DeserializeOwned + Default + Send + 'static,
Resp: Message + Serialize + Send + Sync + 'static,
Source§type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
The type of future calling this handler returns.
Source§fn call(self, req: Request, state: S) -> Self::Future
fn call(self, req: Request, state: S) -> Self::Future
Call the handler with the given request.
Source§fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
Apply a
tower::Layer to the handler. Read moreSource§fn with_state(self, state: S) -> HandlerService<Self, T, S>
fn with_state(self, state: S) -> HandlerService<Self, T, S>
Convert the handler into a
Service by providing the stateSource§impl<F, Fut, S, Req, Resp, A1> Handler<(A1, ConnectRequest<Req>), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, ConnectRequest<Req>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<Resp>, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
ConnectRequest<Req>: FromRequest<S>,
Req: Send + Sync + 'static,
Resp: Message + Serialize + Send + Clone + Sync + 'static,
impl<F, Fut, S, Req, Resp, A1> Handler<(A1, ConnectRequest<Req>), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, ConnectRequest<Req>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<Resp>, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
ConnectRequest<Req>: FromRequest<S>,
Req: Send + Sync + 'static,
Resp: Message + Serialize + Send + Clone + Sync + 'static,
Source§type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
The type of future calling this handler returns.
Source§fn call(self, req: Request, state: S) -> Self::Future
fn call(self, req: Request, state: S) -> Self::Future
Call the handler with the given request.
Source§fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
Apply a
tower::Layer to the handler. Read moreSource§fn with_state(self, state: S) -> HandlerService<Self, T, S>
fn with_state(self, state: S) -> HandlerService<Self, T, S>
Convert the handler into a
Service by providing the stateSource§impl<F, Fut, S, Req, Resp, St, A1> Handler<(A1, ConnectRequest<Req>, StreamBody<St>), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, ConnectRequest<Req>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<StreamBody<St>>, ConnectError>> + Send + 'static,
St: Stream<Item = Result<Resp, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
Req: Message + DeserializeOwned + Default + Send + Sync + 'static,
Resp: Message + Serialize + Send + Sync + 'static,
impl<F, Fut, S, Req, Resp, St, A1> Handler<(A1, ConnectRequest<Req>, StreamBody<St>), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, ConnectRequest<Req>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<StreamBody<St>>, ConnectError>> + Send + 'static,
St: Stream<Item = Result<Resp, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
Req: Message + DeserializeOwned + Default + Send + Sync + 'static,
Resp: Message + Serialize + Send + Sync + 'static,
Source§type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
The type of future calling this handler returns.
Source§fn call(self, req: Request, state: S) -> Self::Future
fn call(self, req: Request, state: S) -> Self::Future
Call the handler with the given request.
Source§fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
Apply a
tower::Layer to the handler. Read moreSource§fn with_state(self, state: S) -> HandlerService<Self, T, S>
fn with_state(self, state: S) -> HandlerService<Self, T, S>
Convert the handler into a
Service by providing the stateSource§impl<F, Fut, S, Req, Resp, A1> Handler<(A1, ConnectRequest<Streaming<Req>>, Resp), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, ConnectRequest<Streaming<Req>>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<Resp>, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
Req: Message + DeserializeOwned + Default + Send + 'static,
Resp: Message + Serialize + Send + Clone + Sync + 'static,
impl<F, Fut, S, Req, Resp, A1> Handler<(A1, ConnectRequest<Streaming<Req>>, Resp), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, ConnectRequest<Streaming<Req>>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<Resp>, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
Req: Message + DeserializeOwned + Default + Send + 'static,
Resp: Message + Serialize + Send + Clone + Sync + 'static,
Source§type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
The type of future calling this handler returns.
Source§fn call(self, req: Request, state: S) -> Self::Future
fn call(self, req: Request, state: S) -> Self::Future
Call the handler with the given request.
Source§fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
Apply a
tower::Layer to the handler. Read moreSource§fn with_state(self, state: S) -> HandlerService<Self, T, S>
fn with_state(self, state: S) -> HandlerService<Self, T, S>
Convert the handler into a
Service by providing the stateSource§impl<F, Fut, S, Req, Resp, St, A1> Handler<(A1, ConnectRequest<Streaming<Req>>, StreamBody<St>), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, ConnectRequest<Streaming<Req>>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<StreamBody<St>>, ConnectError>> + Send + 'static,
St: Stream<Item = Result<Resp, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
Req: Message + DeserializeOwned + Default + Send + 'static,
Resp: Message + Serialize + Send + Sync + 'static,
impl<F, Fut, S, Req, Resp, St, A1> Handler<(A1, ConnectRequest<Streaming<Req>>, StreamBody<St>), S> for ConnectHandlerWrapper<F>where
F: Fn(A1, ConnectRequest<Streaming<Req>>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<StreamBody<St>>, ConnectError>> + Send + 'static,
St: Stream<Item = Result<Resp, ConnectError>> + Send + 'static,
S: Clone + Send + Sync + 'static,
A1: FromRequestParts<S> + Send + Sync + 'static,
<A1 as FromRequestParts<S>>::Rejection: 'static,
Req: Message + DeserializeOwned + Default + Send + 'static,
Resp: Message + Serialize + Send + Sync + 'static,
Source§type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
The type of future calling this handler returns.
Source§fn call(self, req: Request, state: S) -> Self::Future
fn call(self, req: Request, state: S) -> Self::Future
Call the handler with the given request.
Source§fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
Apply a
tower::Layer to the handler. Read moreSource§fn with_state(self, state: S) -> HandlerService<Self, T, S>
fn with_state(self, state: S) -> HandlerService<Self, T, S>
Convert the handler into a
Service by providing the stateSource§impl<F, Fut, Req, Resp> Handler<(ConnectRequest<Req>,), ()> for ConnectHandlerWrapper<F>where
F: Fn(ConnectRequest<Req>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<Resp>, ConnectError>> + Send + 'static,
ConnectRequest<Req>: FromRequest<()>,
Req: Send + Sync + 'static,
Resp: Message + Serialize + Send + Clone + Sync + 'static,
impl<F, Fut, Req, Resp> Handler<(ConnectRequest<Req>,), ()> for ConnectHandlerWrapper<F>where
F: Fn(ConnectRequest<Req>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<Resp>, ConnectError>> + Send + 'static,
ConnectRequest<Req>: FromRequest<()>,
Req: Send + Sync + 'static,
Resp: Message + Serialize + Send + Clone + Sync + 'static,
Source§type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
The type of future calling this handler returns.
Source§fn call(self, req: Request, _state: ()) -> Self::Future
fn call(self, req: Request, _state: ()) -> Self::Future
Call the handler with the given request.
Source§fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
Apply a
tower::Layer to the handler. Read moreSource§fn with_state(self, state: S) -> HandlerService<Self, T, S>
fn with_state(self, state: S) -> HandlerService<Self, T, S>
Convert the handler into a
Service by providing the stateSource§impl<F, Fut, Req, Resp, St> Handler<(ConnectRequest<Req>, StreamBody<St>), ()> for ConnectHandlerWrapper<F>where
F: Fn(ConnectRequest<Req>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<StreamBody<St>>, ConnectError>> + Send + 'static,
St: Stream<Item = Result<Resp, ConnectError>> + Send + 'static,
Req: Message + DeserializeOwned + Default + Send + Sync + 'static,
Resp: Message + Serialize + Send + Sync + 'static,
Handler implementation for server streaming using the unified ConnectHandlerWrapper.
Input: single message, Output: stream of messages
impl<F, Fut, Req, Resp, St> Handler<(ConnectRequest<Req>, StreamBody<St>), ()> for ConnectHandlerWrapper<F>where
F: Fn(ConnectRequest<Req>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<StreamBody<St>>, ConnectError>> + Send + 'static,
St: Stream<Item = Result<Resp, ConnectError>> + Send + 'static,
Req: Message + DeserializeOwned + Default + Send + Sync + 'static,
Resp: Message + Serialize + Send + Sync + 'static,
Handler implementation for server streaming using the unified ConnectHandlerWrapper. Input: single message, Output: stream of messages
Source§type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
The type of future calling this handler returns.
Source§fn call(self, req: Request, _state: ()) -> Self::Future
fn call(self, req: Request, _state: ()) -> Self::Future
Call the handler with the given request.
Source§fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
Apply a
tower::Layer to the handler. Read moreSource§fn with_state(self, state: S) -> HandlerService<Self, T, S>
fn with_state(self, state: S) -> HandlerService<Self, T, S>
Convert the handler into a
Service by providing the stateSource§impl<F, Fut, Req, Resp> Handler<(ConnectRequest<Streaming<Req>>, Resp), ()> for ConnectHandlerWrapper<F>where
F: Fn(ConnectRequest<Streaming<Req>>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<Resp>, ConnectError>> + Send + 'static,
Req: Message + DeserializeOwned + Default + Send + 'static,
Resp: Message + Serialize + Send + Clone + Sync + 'static,
Handler implementation for client streaming using the unified ConnectHandlerWrapper.
Input: stream of messages, Output: single message
impl<F, Fut, Req, Resp> Handler<(ConnectRequest<Streaming<Req>>, Resp), ()> for ConnectHandlerWrapper<F>where
F: Fn(ConnectRequest<Streaming<Req>>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<Resp>, ConnectError>> + Send + 'static,
Req: Message + DeserializeOwned + Default + Send + 'static,
Resp: Message + Serialize + Send + Clone + Sync + 'static,
Handler implementation for client streaming using the unified ConnectHandlerWrapper. Input: stream of messages, Output: single message
Source§type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
The type of future calling this handler returns.
Source§fn call(self, req: Request, _state: ()) -> Self::Future
fn call(self, req: Request, _state: ()) -> Self::Future
Call the handler with the given request.
Source§fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
Apply a
tower::Layer to the handler. Read moreSource§fn with_state(self, state: S) -> HandlerService<Self, T, S>
fn with_state(self, state: S) -> HandlerService<Self, T, S>
Convert the handler into a
Service by providing the stateSource§impl<F, Fut, Req, Resp, St> Handler<(ConnectRequest<Streaming<Req>>, StreamBody<St>), ()> for ConnectHandlerWrapper<F>where
F: Fn(ConnectRequest<Streaming<Req>>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<StreamBody<St>>, ConnectError>> + Send + 'static,
St: Stream<Item = Result<Resp, ConnectError>> + Send + 'static,
Req: Message + DeserializeOwned + Default + Send + 'static,
Resp: Message + Serialize + Send + Sync + 'static,
Handler implementation for bidirectional streaming using the unified ConnectHandlerWrapper.
Input: stream of messages, Output: stream of messages
Note: Requires HTTP/2 for full-duplex communication.
impl<F, Fut, Req, Resp, St> Handler<(ConnectRequest<Streaming<Req>>, StreamBody<St>), ()> for ConnectHandlerWrapper<F>where
F: Fn(ConnectRequest<Streaming<Req>>) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<ConnectResponse<StreamBody<St>>, ConnectError>> + Send + 'static,
St: Stream<Item = Result<Resp, ConnectError>> + Send + 'static,
Req: Message + DeserializeOwned + Default + Send + 'static,
Resp: Message + Serialize + Send + Sync + 'static,
Handler implementation for bidirectional streaming using the unified ConnectHandlerWrapper. Input: stream of messages, Output: stream of messages Note: Requires HTTP/2 for full-duplex communication.
Source§type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
type Future = Pin<Box<dyn Future<Output = Response<Body>> + Send>>
The type of future calling this handler returns.
Source§fn call(self, req: Request, _state: ()) -> Self::Future
fn call(self, req: Request, _state: ()) -> Self::Future
Call the handler with the given request.
Source§fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
Apply a
tower::Layer to the handler. Read moreSource§fn with_state(self, state: S) -> HandlerService<Self, T, S>
fn with_state(self, state: S) -> HandlerService<Self, T, S>
Convert the handler into a
Service by providing the stateAuto Trait Implementations§
impl<F> Freeze for ConnectHandlerWrapper<F>where
F: Freeze,
impl<F> RefUnwindSafe for ConnectHandlerWrapper<F>where
F: RefUnwindSafe,
impl<F> Send for ConnectHandlerWrapper<F>where
F: Send,
impl<F> Sync for ConnectHandlerWrapper<F>where
F: Sync,
impl<F> Unpin for ConnectHandlerWrapper<F>where
F: Unpin,
impl<F> UnwindSafe for ConnectHandlerWrapper<F>where
F: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<H, T> HandlerWithoutStateExt<T> for H
impl<H, T> HandlerWithoutStateExt<T> for H
Source§fn into_service(self) -> HandlerService<H, T, ()>
fn into_service(self) -> HandlerService<H, T, ()>
Convert the handler into a
Service and no state.Source§fn into_make_service(self) -> IntoMakeService<HandlerService<H, T, ()>>
fn into_make_service(self) -> IntoMakeService<HandlerService<H, T, ()>>
Convert the handler into a
MakeService and no state. Read moreSource§fn into_make_service_with_connect_info<C>(
self,
) -> IntoMakeServiceWithConnectInfo<HandlerService<H, T, ()>, C>
fn into_make_service_with_connect_info<C>( self, ) -> IntoMakeServiceWithConnectInfo<HandlerService<H, T, ()>, C>
Convert the handler into a
MakeService which stores information
about the incoming connection and has no state. Read more