pub fn wrap_handler<T>(
    f: fn(_: Vec<(String, String)>, _: HashMap<String, Value>, _: Vec<u8>) -> T
) -> Box<dyn Fn(Vec<(String, String)>, HashMap<String, Value>, Vec<u8>) -> Pin<Box<dyn Future<Output = ()>>>>where
    T: Future<Output = ()> + 'static,
Expand description

Helper for wrapping function to a Handler. Then the Handler should be inserted into Router.