Function panic_hook::set_with[][src]

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

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

Depending on how Tetsy 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.