pub fn set_with<F>(f: F) where
    F: Fn(&str) + Send + Sync + 'static, 
Expand description

Set the panic hook with a closure to be called. The closure receives the panic message.

Depending on how OpenEthereum was compiled, after the closure has been executed, either the process aborts or unwinding starts.

If you panic within the closure, a double panic happens and the process will stop.