handler_fn

Function handler_fn 

Source
pub fn handler_fn<F, Args>(f: F) -> FnHandler<F, Args>
where F: FnTrait<Args>,
Expand description

Creates a new FnHandler that wraps the given async function.

This is the main way to convert an async function into a request handler.