Skip to main content

fn_service

Function fn_service 

Source
pub fn fn_service<F, Req, Res, Err>(f: F) -> FnService<F, Req, Res, Err>
where F: AsyncFn(Req) -> Result<Res, Err>,
Expand description

Converts an asynchronous function into a Service.