Module panic

Source
Expand description

Panic utilities.

Constants§

CATCHING_UNWIND 🔒

Statics§

CATCHING_UNWIND_ASYNC 🔒

Functions§

catch_unwind
Like std::panic::catch_unwind, but can unwind panics even if install_enhanced_handler has been called.
catch_unwind_str
Like crate::panic::catch_unwind, but downcasts the returned Box<dyn Any> error to a string which is almost always is.
install_enhanced_handler
Overwrites the default panic handler with an enhanced panic handler.