pub fn set_diag_dump_hook(hook: Box<dyn Fn() + Send + Sync>)
Install the diagnostics-dump hook. First call wins.