Skip to main content

Module panic_payload

Module panic_payload 

Source
Expand description

Rendering a caught panic payload as a human-readable message.

Every place that recovers from a panic with std::panic::catch_unwind needs the same three-way downcast, so it lives here once rather than being re-derived per crate (leviath-scripting’s Rhai host-function guards and leviath-runtime’s pipeline-tick isolation both use it).

Functions§

panic_message
Render a catch_unwind payload as a message.