pub fn set_hook(hook: &'static (dyn Fn(&ExternalPanicInfo<'_>) + Send + Sync))
Like std::panic::set_hook.
std::panic::set_hook