Function tsukuyomi_service::make_service_ref
source · pub fn make_service_ref<Request, Ctx, R>(
f: impl Fn(&Ctx) -> R
) -> impl for<'a> MakeService<&'a Ctx, Request, Response = <R::Item as Service<Request>>::Response, Error = <R::Item as Service<Request>>::Error, Service = R::Item, MakeError = R::Error, Future = R::Future>where
R: IntoFuture,
R::Item: Service<Request>,
Expand description
Creates a ModifyServiceRef
from a function.