Function hyper::server::service_fn [] [src]

pub fn service_fn<F, R, S>(f: F) -> ServiceFn<F, R> where
    F: Fn(R) -> S,
    S: IntoFuture

Create a Service from a function.