pub fn modify_service_ref<Request, S, Ctx, R>(
    f: impl Fn(S, &Ctx) -> R
) -> impl for<'a> ModifyService<&'a Ctx, Request, S, Response = <R::Item as Service<Request>>::Response, Error = <R::Item as Service<Request>>::Error, Service = R::Item, ModifyError = R::Error, Future = R::Future>where
    R: IntoFuture,
    R::Item: Service<Request>,
Expand description

Creates a ModifyServiceRef from a function.