InstallOptions

Enum InstallOptions 

Source
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.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.