Module panic

Source
Expand description

Support for cross-process panic handling.

This module provides a version of the standard library’s panic info object (PanicInfo) which can hold information about why a panic happened so it can be sent across processes.

To capture panics instead of crashing the panic hook needs to be installed (init_panic_hook) and afterwards the panicking function needs to be invoked via catch_panic.

This requires the panic-support feature.

Structs§

Location
Location of a panic.
PanicInfo
Represents a panic caugh across processes.

Functions§

catch_panic
Invokes a function and captures the panic.
init_panic_hook
Initializes the panic hook for IPC usage.