rama::service

Function service_fn

pub fn service_fn<F, T, R, O, E>(f: F) -> ServiceFn<F, T, R, O, E>
where F: Factory<T, R, O, E>, R: Future<Output = Result<O, E>>,
Expand description

Create a ServiceFn from a function.