[][src]Function tower::util::service_fn

pub fn service_fn<T>(f: T) -> ServiceFn<T>
This is supported on crate feature util only.

Returns a new ServiceFn with the given closure.