[][src]Function izanami_service::service_fn

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

Creates a Service from a function that returns responses asynchronously.