Module panic_hook

Module panic_hook 

Source

Constantsยง

CAPTURE_BUF ๐Ÿ”’

Functionsยง

custom_panic_hook ๐Ÿ”’
get_location ๐Ÿ”’
install_panic_hook ๐Ÿ”’
Installs a custom panic hook that will divert panic output to a thread-local capture buffer, but only for threads that have a capture buffer set.
rust_backtrace_full ๐Ÿ”’
set_capture_buf ๐Ÿ”’
take_capture_buf ๐Ÿ”’
trim_backtrace ๐Ÿ”’
On stable, short backtraces are only available to the default panic hook, so if we want something similar we have to resort to string processing.

Type Aliasesยง

CaptureBuf ๐Ÿ”’
PanicHook ๐Ÿ”’