Function ntex::service::apply_cfg [−][src]
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
T: Service,
S: Service,
F: Fn(C, &T) -> R,
R: Future<Output = Result<S, E>>,
Expand description
Convert Fn(Config, &mut Service1) -> Future<Service2>
fn to a service factory