Function init_panic_hook

Source
pub fn init_panic_hook<F>(f: F)
where F: Fn() -> i32 + Send + Sync + 'static,
Expand description

configure custom panic hook that disables terminal raw mode supply a closure that will be called when a panic occurs giving an opportunity to output a custom message. The closure should return a desirable process exit code.