Function ntex_service::apply_fn

source ·
pub fn apply_fn<T, Req, F, R, In, Out, Err, U>(
    service: U,
    f: F
) -> Apply<T, Req, F, R, In, Out, Err>
where T: Service<Req>, F: Fn(In, Pipeline<T>) -> R, R: Future<Output = Result<Out, Err>>, U: IntoService<T, Req>, Err: From<T::Error>,
Expand description

Apply transform function to a service.