Skip to main content

handler

Function handler 

Source
pub fn handler<F, Fut>(f: F) -> Handler
where F: Fn(Request) -> Fut + Send + Sync + 'static, Fut: Future<Output = Result<Value, String>> + Send + 'static,
Expand description

A Handler from an async closure.