pub fn from_fn<F, Fut>(f: F) -> FnHandler<F>where F: Fn(ConnectionHandle) -> Fut + Send + Sync + Clone + 'static, Fut: Future<Output = Result<()>> + Send + 'static,
Create a handler from a function