Skip to main content

install_panic_hook

Function install_panic_hook 

Source
pub fn install_panic_hook()
Expand description

Install the obs panic hook. Idempotent — calling more than once is a no-op.

The hook chains the previously-installed hook (typically the default), so panic! still produces the standard backtrace; the added behaviour is one ObsPanicked envelope plus a 2-second best-effort sink flush before the chained hook runs.