Skip to main content

payload_free_panic_hook

Function payload_free_panic_hook 

Source
pub fn payload_free_panic_hook(information: &PanicHookInfo<'_>)
Expand description

What: The hook itself: write the notice to standard error and nothing else. &PanicHookInfo<'_> borrows what the panic carries; its message is never read. Why: A hook cannot report a failure to write, so a closed stream is ignored.

In TS you’d write (pseudocode):

function payloadFreePanicHook(info: PanicInfo): void;