pub enum InstallOptions {
NoHandlers,
ExceptionHandler,
SignalHandler,
BothHandlers,
}Expand description
Determines which handlers are installed to catch errors. These options are only used when targetting MacOS/iOS, all other platforms use the only error handler they support
Variants§
NoHandlers
No handlers are registered. This means you won’t actually catch any errors at all.
ExceptionHandler
Registers the exception handler. On Mac, this means that traditional Unix signals will NOT be sent, which can interfere with normal operations of your program if it is indeed trying to hook into signal handlers, eg wasmtime.
SignalHandler
Registers the signal handler. If the exception handler is not installed this means that exceptions will be turned into normal Unix signals instead, which allows other signal handlers to interoperate with the Breakpad signal handler by just installing themselves AFTER the Breakpad signal handler is installed and restoring it when they are finished with their signal handling, allowing Breakpad to continue to catch crash signals when other application signal handlers are not active
BothHandlers
Installs both the ExceptionHandler and SignalHandler, but this has all of the caveats of the ExceptionHandler.