[][src]Function ntex::service::apply_cfg_factory

pub fn apply_cfg_factory<F, C, T, R, S>(
    factory: 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 = <T as ServiceFactory>::InitError> + Clone where
    T: ServiceFactory<Config = ()>,
    F: Fn(C, &<T as ServiceFactory>::Service) -> R,
    R: Future<Output = Result<S, <T as ServiceFactory>::InitError>>,
    S: Service,
    <T as ServiceFactory>::InitError: From<<T as ServiceFactory>::Error>, 

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

Service1 get constructed from T factory.