Skip to main content

fire

Function fire 

Source
pub(crate) fn fire(message: &str, source: PanicSource)
Expand description

Fire the telemetry hook if one is set.

Called internally at each panic→R-error conversion site.

The hook is cloned (as Rc) out of the slot before it runs, so it can call set_panic_telemetry_hook or clear_panic_telemetry_hook. Secondary panics from the hook are caught and silently suppressed.