pub fn run<T, R, F>(handler: F)Expand description
Run an action.
Installs the panic hook, reads the request, parses it into the handler’s input type, calls the handler, and reports the result — exactly once, whatever happens.
It returns nothing, because there is nobody to return to: the result travels to the host, and everything that could go wrong has already been turned into a failure the host can read.