Skip to main content

install_panic_hook

Function install_panic_hook 

Source
pub fn install_panic_hook(config: PanicHookConfig)
Expand description

Installs the shared panic hook for the current process.

The first configuration installed in a process is retained. This matches the process-wide nature of Rust panic hooks and avoids swapping crash-log targets after a hook has already been installed.