pub fn install(
reports: CrashReports,
storage: impl Fn() -> Box<dyn Storage> + Send + Sync + 'static,
)Expand description
Writes reports of every panic from now on, as reports says, each
through a new storage from storage, then calls the hook that was there
before. The thread it is called on is the game’s: a panic there is
fatal, and one on any other thread isn’t.
Installs nothing if reports keeps none. Called again, it changes what
the hook does, and installs no second hook.