pub enum CrashEventResult {
    Handled(bool),
    Jump {
        jmp_buf: *mut JmpBuf,
        value: i32,
    },
}
Expand description

The result of the user code executed during a crash event

Variants

Handled(bool)

The event was handled in some way

Jump

Fields

jmp_buf: *mut JmpBuf

The location to jump back to, retrieved via sig/setjmp

value: i32

The value that will be returned from the sig/setjmp call that we jump to. Note that if the value is 0 it will be corrected to 1

The handler wishes to jump somewhere else, presumably to return execution and skip the code that caused the exception

Trait Implementations

Converts to this type from the input type.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.