actix_service

Function map_config

source
pub fn map_config<I, SF, Req, F, Cfg>(
    factory: I,
    f: F,
) -> MapConfig<SF, Req, F, Cfg>
where I: IntoServiceFactory<SF, Req>, SF: ServiceFactory<Req>, F: Fn(Cfg) -> SF::Config,
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.