[][src]Function ntex::service::apply_cfg

pub fn apply_cfg<F, C, T, R, S, E>(
    srv: T,
    f: F
) -> impl ServiceFactory<Config = C, Request = <S as Service>::Request, Response = <S as Service>::Response, Error = <S as Service>::Error, Service = S, InitError = E, Future = R> + Clone where
    F: Fn(C, &T) -> R,
    R: Future<Output = Result<S, E>>,
    S: Service,
    T: Service

Convert Fn(Config, &mut Service1) -> Future<Service2> fn to a service factory