[][src]Function ntex::service::map_config

pub fn map_config<T, U, F, C>(factory: U, f: F) -> MapConfig<T, F, C> where
    F: Fn(C) -> <T as ServiceFactory>::Config,
    T: ServiceFactory,
    U: IntoServiceFactory<T>, 

Adapt external config argument to a config for provided service factory

Note that this function consumes the receiving service factory and returns a wrapped version of it.