pub fn handler<F, Fut>(f: F) -> Handlerwhere F: Fn(Session) -> Fut + Send + Sync + 'static, Fut: Future<Output = ()> + Send + 'static,
Creates a handler from an async function.