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

pub fn map_config<T, R, U, F, C, C2>(
    factory: U,
    f: F
) -> MapConfig<T, R, F, C, C2> where
    T: ServiceFactory<R, C2>,
    U: IntoServiceFactory<T, R, C2>,
    F: Fn(C) -> C2, 
Expand description

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.