Module panic

Source
Expand description

Utilities for dealing with panics (and unlocking better debugging).

Important: be careful about installing panic handlers. Do it only once per thread and pick your function carefully.

Structs§

Unwind
The captured information about an unwinding panic.

Functions§

chain_panic_hook
Sets the thread local panic handler to record the unwind information and then execute the existing hook.
dont_panic
Run a future such that panics are converted into Unwinds.
replace_panic_hook
Sets the thread local panic handler to record the unwind information.