pub fn apply_fn<S, St, Req, F, In, Out, Err>(
service: impl IntoService<S, St, Req>,
f: F,
) -> ServiceChain<Apply<S, St, Req, F, In, Out, Err>, St, In>Expand description
Applies an asynchronous middleware function to a service.
The function receives an input request and an ApplyCtx that can call the
wrapped service.