pub fn service_fn<F>(closure: F) -> ServiceFn<F>
Constructs a Service from a closure.
Service
See the module for more details.