Function ntex::service::apply_fn[][src]

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, Error = Err>,
    F: Fn(In, &T) -> R,
    R: Future<Output = Result<Out, Err>>,
    U: IntoService<T, Req>, 
Expand description

Apply tranform function to a service.