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.
payload_as_str πŸ”’
FIXME(Zalathar): Replace with PanicHookInfo::payload_as_str when that’s stable in beta.
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 πŸ”’