Skip to main content

handler

Function handler 

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

Creates a handler from an async function.