Function tower_util::service_fn[][src]

pub fn service_fn<T>(f: T) -> ServiceFn<T>

Returns a new ServiceFn with the given closure.