Skip to main content

panic_hook

Function panic_hook 

Source
pub fn panic_hook()
Expand description

(feature std) std’s panics end as rt’s panic handler ends them without std: one line on stderr, the crash hook, exit code 3. plat’s start of a std program installs it; replacing it with std::panic::set_hook gives up JFLib’s crash report for panics. With the feature unwind and panic = "unwind" it reports only a panic nobody catches: one that leaves the program’s start or a thread of JFLib’s, or reaches a callback of the system ([abort_on_unwind]).