ConnectHandlerWrapper

Struct ConnectHandlerWrapper 

Source
pub struct ConnectHandlerWrapper<F>(pub F);
Expand description

A wrapper that adapts ConnectHandler functions to work with Axum’s Handler trait

Tuple Fields§

§0: F

Trait Implementations§

Source§

impl<F: Clone> Clone for ConnectHandlerWrapper<F>

Source§

fn clone(&self) -> ConnectHandlerWrapper<F>

Returns a duplicate of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

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

The type of future calling this handler returns.
Source§

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

Apply a tower::Layer to the handler. Read more
Source§

fn with_state(self, state: S) -> HandlerService<Self, T, S>

Convert the handler into a Service by providing the state
Source§

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

The type of future calling this handler returns.
Source§

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

Apply a tower::Layer to the handler. Read more
Source§

fn with_state(self, state: S) -> HandlerService<Self, T, S>

Convert the handler into a Service by providing the state
Source§

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

The type of future calling this handler returns.
Source§

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

Apply a tower::Layer to the handler. Read more
Source§

fn with_state(self, state: S) -> HandlerService<Self, T, S>

Convert the handler into a Service by providing the state
Source§

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

The type of future calling this handler returns.
Source§

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

Apply a tower::Layer to the handler. Read more
Source§

fn with_state(self, state: S) -> HandlerService<Self, T, S>

Convert the handler into a Service by providing the state
Source§

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

The type of future calling this handler returns.
Source§

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

Apply a tower::Layer to the handler. Read more
Source§

fn with_state(self, state: S) -> HandlerService<Self, T, S>

Convert the handler into a Service by providing the state
Source§

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

The type of future calling this handler returns.
Source§

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

Apply a tower::Layer to the handler. Read more
Source§

fn with_state(self, state: S) -> HandlerService<Self, T, S>

Convert the handler into a Service by providing the state
Source§

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

The type of future calling this handler returns.
Source§

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

Apply a tower::Layer to the handler. Read more
Source§

fn with_state(self, state: S) -> HandlerService<Self, T, S>

Convert the handler into a Service by providing the state
Source§

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

The type of future calling this handler returns.
Source§

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

Apply a tower::Layer to the handler. Read more
Source§

fn with_state(self, state: S) -> HandlerService<Self, T, S>

Convert the handler into a Service by providing the state
Source§

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

The type of future calling this handler returns.
Source§

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

Apply a tower::Layer to the handler. Read more
Source§

fn with_state(self, state: S) -> HandlerService<Self, T, S>

Convert the handler into a Service by providing the state
Source§

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

The type of future calling this handler returns.
Source§

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

Apply a tower::Layer to the handler. Read more
Source§

fn with_state(self, state: S) -> HandlerService<Self, T, S>

Convert the handler into a Service by providing the state
Source§

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

The type of future calling this handler returns.
Source§

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

Apply a tower::Layer to the handler. Read more
Source§

fn with_state(self, state: S) -> HandlerService<Self, T, S>

Convert the handler into a Service by providing the state
Source§

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

The type of future calling this handler returns.
Source§

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

Apply a tower::Layer to the handler. Read more
Source§

fn with_state(self, state: S) -> HandlerService<Self, T, S>

Convert the handler into a Service by providing the state
Source§

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

The type of future calling this handler returns.
Source§

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

Apply a tower::Layer to the handler. Read more
Source§

fn with_state(self, state: S) -> HandlerService<Self, T, S>

Convert the handler into a Service by providing the state
Source§

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

The type of future calling this handler returns.
Source§

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

Apply a tower::Layer to the handler. Read more
Source§

fn with_state(self, state: S) -> HandlerService<Self, T, S>

Convert the handler into a Service by providing the state
Source§

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

The type of future calling this handler returns.
Source§

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

Apply a tower::Layer to the handler. Read more
Source§

fn with_state(self, state: S) -> HandlerService<Self, T, S>

Convert the handler into a Service by providing the state
Source§

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

The type of future calling this handler returns.
Source§

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

Apply a tower::Layer to the handler. Read more
Source§

fn with_state(self, state: S) -> HandlerService<Self, T, S>

Convert the handler into a Service by providing the state
Source§

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

The type of future calling this handler returns.
Source§

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

Apply a tower::Layer to the handler. Read more
Source§

fn with_state(self, state: S) -> HandlerService<Self, T, S>

Convert the handler into a Service by providing the state
Source§

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

The type of future calling this handler returns.
Source§

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

Apply a tower::Layer to the handler. Read more
Source§

fn with_state(self, state: S) -> HandlerService<Self, T, S>

Convert the handler into a Service by providing the state
Source§

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

The type of future calling this handler returns.
Source§

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

Apply a tower::Layer to the handler. Read more
Source§

fn with_state(self, state: S) -> HandlerService<Self, T, S>

Convert the handler into a Service by providing the state
Source§

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

The type of future calling this handler returns.
Source§

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

Apply a tower::Layer to the handler. Read more
Source§

fn with_state(self, state: S) -> HandlerService<Self, T, S>

Convert the handler into a Service by providing the state
Source§

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

The type of future calling this handler returns.
Source§

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

Apply a tower::Layer to the handler. Read more
Source§

fn with_state(self, state: S) -> HandlerService<Self, T, S>

Convert the handler into a Service by providing the state
Source§

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

The type of future calling this handler returns.
Source§

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

Apply a tower::Layer to the handler. Read more
Source§

fn with_state(self, state: S) -> HandlerService<Self, T, S>

Convert the handler into a Service by providing the state
Source§

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

The type of future calling this handler returns.
Source§

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

Apply a tower::Layer to the handler. Read more
Source§

fn with_state(self, state: S) -> HandlerService<Self, T, S>

Convert the handler into a Service by providing the state
Source§

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

The type of future calling this handler returns.
Source§

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

Apply a tower::Layer to the handler. Read more
Source§

fn with_state(self, state: S) -> HandlerService<Self, T, S>

Convert the handler into a Service by providing the state
Source§

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

The type of future calling this handler returns.
Source§

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

Apply a tower::Layer to the handler. Read more
Source§

fn with_state(self, state: S) -> HandlerService<Self, T, S>

Convert the handler into a Service by providing the state
Source§

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

The type of future calling this handler returns.
Source§

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

Apply a tower::Layer to the handler. Read more
Source§

fn with_state(self, state: S) -> HandlerService<Self, T, S>

Convert the handler into a Service by providing the state
Source§

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

The type of future calling this handler returns.
Source§

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

Apply a tower::Layer to the handler. Read more
Source§

fn with_state(self, state: S) -> HandlerService<Self, T, S>

Convert the handler into a Service by providing the state
Source§

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

The type of future calling this handler returns.
Source§

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

Apply a tower::Layer to the handler. Read more
Source§

fn with_state(self, state: S) -> HandlerService<Self, T, S>

Convert the handler into a Service by providing the state
Source§

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

The type of future calling this handler returns.
Source§

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

Apply a tower::Layer to the handler. Read more
Source§

fn with_state(self, state: S) -> HandlerService<Self, T, S>

Convert the handler into a Service by providing the state
Source§

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

The type of future calling this handler returns.
Source§

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

Apply a tower::Layer to the handler. Read more
Source§

fn with_state(self, state: S) -> HandlerService<Self, T, S>

Convert the handler into a Service by providing the state
Source§

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

The type of future calling this handler returns.
Source§

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

Apply a tower::Layer to the handler. Read more
Source§

fn with_state(self, state: S) -> HandlerService<Self, T, S>

Convert the handler into a Service by providing the state
Source§

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

The type of future calling this handler returns.
Source§

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

Apply a tower::Layer to the handler. Read more
Source§

fn with_state(self, state: S) -> HandlerService<Self, T, S>

Convert the handler into a Service by providing the state
Source§

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

The type of future calling this handler returns.
Source§

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

Apply a tower::Layer to the handler. Read more
Source§

fn with_state(self, state: S) -> HandlerService<Self, T, S>

Convert the handler into a Service by providing the state
Source§

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

The type of future calling this handler returns.
Source§

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

Apply a tower::Layer to the handler. Read more
Source§

fn with_state(self, state: S) -> HandlerService<Self, T, S>

Convert the handler into a Service by providing the state
Source§

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

The type of future calling this handler returns.
Source§

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

Apply a tower::Layer to the handler. Read more
Source§

fn with_state(self, state: S) -> HandlerService<Self, T, S>

Convert the handler into a Service by providing the state
Source§

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

The type of future calling this handler returns.
Source§

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

Apply a tower::Layer to the handler. Read more
Source§

fn with_state(self, state: S) -> HandlerService<Self, T, S>

Convert the handler into a Service by providing the state
Source§

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

The type of future calling this handler returns.
Source§

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

Apply a tower::Layer to the handler. Read more
Source§

fn with_state(self, state: S) -> HandlerService<Self, T, S>

Convert the handler into a Service by providing the state
Source§

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

The type of future calling this handler returns.
Source§

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

Apply a tower::Layer to the handler. Read more
Source§

fn with_state(self, state: S) -> HandlerService<Self, T, S>

Convert the handler into a Service by providing the state
Source§

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

The type of future calling this handler returns.
Source§

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

Apply a tower::Layer to the handler. Read more
Source§

fn with_state(self, state: S) -> HandlerService<Self, T, S>

Convert the handler into a Service by providing the state
Source§

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

The type of future calling this handler returns.
Source§

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

Apply a tower::Layer to the handler. Read more
Source§

fn with_state(self, state: S) -> HandlerService<Self, T, S>

Convert the handler into a Service by providing the state
Source§

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

The type of future calling this handler returns.
Source§

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

Apply a tower::Layer to the handler. Read more
Source§

fn with_state(self, state: S) -> HandlerService<Self, T, S>

Convert the handler into a Service by providing the state
Source§

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

The type of future calling this handler returns.
Source§

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

Apply a tower::Layer to the handler. Read more
Source§

fn with_state(self, state: S) -> HandlerService<Self, T, S>

Convert the handler into a Service by providing the state
Source§

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

The type of future calling this handler returns.
Source§

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

Apply a tower::Layer to the handler. Read more
Source§

fn with_state(self, state: S) -> HandlerService<Self, T, S>

Convert the handler into a Service by providing the state
Source§

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

The type of future calling this handler returns.
Source§

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

Apply a tower::Layer to the handler. Read more
Source§

fn with_state(self, state: S) -> HandlerService<Self, T, S>

Convert the handler into a Service by providing the state
Source§

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

The type of future calling this handler returns.
Source§

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

Apply a tower::Layer to the handler. Read more
Source§

fn with_state(self, state: S) -> HandlerService<Self, T, S>

Convert the handler into a Service by providing the state
Source§

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

The type of future calling this handler returns.
Source§

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

Apply a tower::Layer to the handler. Read more
Source§

fn with_state(self, state: S) -> HandlerService<Self, T, S>

Convert the handler into a Service by providing the state
Source§

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

The type of future calling this handler returns.
Source§

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

Apply a tower::Layer to the handler. Read more
Source§

fn with_state(self, state: S) -> HandlerService<Self, T, S>

Convert the handler into a Service by providing the state
Source§

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

The type of future calling this handler returns.
Source§

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

Apply a tower::Layer to the handler. Read more
Source§

fn with_state(self, state: S) -> HandlerService<Self, T, S>

Convert the handler into a Service by providing the state
Source§

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

The type of future calling this handler returns.
Source§

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

Apply a tower::Layer to the handler. Read more
Source§

fn with_state(self, state: S) -> HandlerService<Self, T, S>

Convert the handler into a Service by providing the state
Source§

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

The type of future calling this handler returns.
Source§

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

Apply a tower::Layer to the handler. Read more
Source§

fn with_state(self, state: S) -> HandlerService<Self, T, S>

Convert the handler into a Service by providing the state
Source§

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

The type of future calling this handler returns.
Source§

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

Apply a tower::Layer to the handler. Read more
Source§

fn with_state(self, state: S) -> HandlerService<Self, T, S>

Convert the handler into a Service by providing the state
Source§

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

The type of future calling this handler returns.
Source§

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

Apply a tower::Layer to the handler. Read more
Source§

fn with_state(self, state: S) -> HandlerService<Self, T, S>

Convert the handler into a Service by providing the state
Source§

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

The type of future calling this handler returns.
Source§

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

Apply a tower::Layer to the handler. Read more
Source§

fn with_state(self, state: S) -> HandlerService<Self, T, S>

Convert the handler into a Service by providing the state
Source§

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

The type of future calling this handler returns.
Source§

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

Apply a tower::Layer to the handler. Read more
Source§

fn with_state(self, state: S) -> HandlerService<Self, T, S>

Convert the handler into a Service by providing the state
Source§

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

The type of future calling this handler returns.
Source§

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

Apply a tower::Layer to the handler. Read more
Source§

fn with_state(self, state: S) -> HandlerService<Self, T, S>

Convert the handler into a Service by providing the state
Source§

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

The type of future calling this handler returns.
Source§

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

Apply a tower::Layer to the handler. Read more
Source§

fn with_state(self, state: S) -> HandlerService<Self, T, S>

Convert the handler into a Service by providing the state
Source§

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

The type of future calling this handler returns.
Source§

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

Apply a tower::Layer to the handler. Read more
Source§

fn with_state(self, state: S) -> HandlerService<Self, T, S>

Convert the handler into a Service by providing the state
Source§

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

The type of future calling this handler returns.
Source§

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

Apply a tower::Layer to the handler. Read more
Source§

fn with_state(self, state: S) -> HandlerService<Self, T, S>

Convert the handler into a Service by providing the state
Source§

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

The type of future calling this handler returns.
Source§

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

Apply a tower::Layer to the handler. Read more
Source§

fn with_state(self, state: S) -> HandlerService<Self, T, S>

Convert the handler into a Service by providing the state
Source§

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

The type of future calling this handler returns.
Source§

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

Apply a tower::Layer to the handler. Read more
Source§

fn with_state(self, state: S) -> HandlerService<Self, T, S>

Convert the handler into a Service by providing the state
Source§

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

The type of future calling this handler returns.
Source§

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

Apply a tower::Layer to the handler. Read more
Source§

fn with_state(self, state: S) -> HandlerService<Self, T, S>

Convert the handler into a Service by providing the state
Source§

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

The type of future calling this handler returns.
Source§

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

Apply a tower::Layer to the handler. Read more
Source§

fn with_state(self, state: S) -> HandlerService<Self, T, S>

Convert the handler into a Service by providing the state
Source§

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

The type of future calling this handler returns.
Source§

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

Apply a tower::Layer to the handler. Read more
Source§

fn with_state(self, state: S) -> HandlerService<Self, T, S>

Convert the handler into a Service by providing the state
Source§

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

The type of future calling this handler returns.
Source§

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

Apply a tower::Layer to the handler. Read more
Source§

fn with_state(self, state: S) -> HandlerService<Self, T, S>

Convert the handler into a Service by providing the state
Source§

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

The type of future calling this handler returns.
Source§

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

Apply a tower::Layer to the handler. Read more
Source§

fn with_state(self, state: S) -> HandlerService<Self, T, S>

Convert the handler into a Service by providing the state
Source§

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

The type of future calling this handler returns.
Source§

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

Apply a tower::Layer to the handler. Read more
Source§

fn with_state(self, state: S) -> HandlerService<Self, T, S>

Convert the handler into a Service by providing the state
Source§

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

The type of future calling this handler returns.
Source§

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

Apply a tower::Layer to the handler. Read more
Source§

fn with_state(self, state: S) -> HandlerService<Self, T, S>

Convert the handler into a Service by providing the state
Source§

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

The type of future calling this handler returns.
Source§

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

Apply a tower::Layer to the handler. Read more
Source§

fn with_state(self, state: S) -> HandlerService<Self, T, S>

Convert the handler into a Service by providing the state

Auto 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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

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

Source§

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

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

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

Source§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
Source§

impl<H, T> HandlerWithoutStateExt<T> for H
where H: Handler<T, ()>,

Source§

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

Convert the handler into a MakeService and no state. Read more
Source§

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

impl<T> Instrument for T

Source§

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

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

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

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

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

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

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

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

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

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

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

Source§

type Error = Infallible

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

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

Performs the conversion.
Source§

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

Source§

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

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

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

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

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

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<A, B, T> HttpServerConnExec<A, B> for T
where B: Body,