[−][src]Trait hreq::server::StateMiddleware
Required methods
fn call<'a>(
&'a self,
state: State,
req: Request<Body>,
next: Next
) -> Pin<Box<dyn Future<Output = Reply> + Send + 'a>>
&'a self,
state: State,
req: Request<Body>,
next: Next
) -> Pin<Box<dyn Future<Output = Reply> + Send + 'a>>
Implementors
impl<State, F: Send + Sync + 'static, Fut, Ret> StateMiddleware<State> for F where
F: Fn(State, Request<Body>, Next) -> Fut,
Fut: Future<Output = Ret> + Send + 'static,
Ret: Into<Reply>,
[src]
F: Fn(State, Request<Body>, Next) -> Fut,
Fut: Future<Output = Ret> + Send + 'static,
Ret: Into<Reply>,