pub fn service_fn<Request, R>(
    f: impl FnMut(Request) -> R
) -> impl Service<Request, Response = R::Item, Error = R::Error, Future = R::Future>where
    R: IntoFuture,
Expand description

Creates a Service from a function.