pub enum CrashReason {
Show 33 variants MacGeneral(ExceptionCodeMacu32), MacBadAccessKern(ExceptionCodeMacBadAccessKernType), MacBadAccessArm(ExceptionCodeMacBadAccessArmType), MacBadAccessPpc(ExceptionCodeMacBadAccessPpcType), MacBadAccessX86(ExceptionCodeMacBadAccessX86Type), MacBadInstructionArm(ExceptionCodeMacBadInstructionArmType), MacBadInstructionPpc(ExceptionCodeMacBadInstructionPpcType), MacBadInstructionX86(ExceptionCodeMacBadInstructionX86Type), MacArithmeticArm(ExceptionCodeMacArithmeticArmType), MacArithmeticPpc(ExceptionCodeMacArithmeticPpcType), MacArithmeticX86(ExceptionCodeMacArithmeticX86Type), MacSoftware(ExceptionCodeMacSoftwareType), MacBreakpointArm(ExceptionCodeMacBreakpointArmType), MacBreakpointPpc(ExceptionCodeMacBreakpointPpcType), MacBreakpointX86(ExceptionCodeMacBreakpointX86Type), MacResource(ExceptionCodeMacResourceTypeu64u64), MacGuard(ExceptionCodeMacGuardTypeu64u64), LinuxGeneral(ExceptionCodeLinuxu32), LinuxSigill(ExceptionCodeLinuxSigillKind), LinuxSigtrap(ExceptionCodeLinuxSigtrapKind), LinuxSigbus(ExceptionCodeLinuxSigbusKind), LinuxSigfpe(ExceptionCodeLinuxSigfpeKind), LinuxSigsegv(ExceptionCodeLinuxSigsegvKind), LinuxSigsys(ExceptionCodeLinuxSigsysKind), WindowsGeneral(ExceptionCodeWindows), WindowsWinError(WinErrorWindows), WindowsWinErrorWithFacility(WinErrorFacilityWindowsWinErrorWindows), WindowsNtStatus(NtStatusWindows), WindowsAccessViolation(ExceptionCodeWindowsAccessType), WindowsInPageError(ExceptionCodeWindowsInPageErrorTypeu64), WindowsStackBufferOverrun(u64), WindowsUnknown(u32), Unknown(u32u32),
}
Expand description

The reason for a process crash.

Variants§

§

MacGeneral(ExceptionCodeMacu32)

A Mac/iOS error code with no other interesting details.

§

MacBadAccessKern(ExceptionCodeMacBadAccessKernType)

§

MacBadAccessArm(ExceptionCodeMacBadAccessArmType)

§

MacBadAccessPpc(ExceptionCodeMacBadAccessPpcType)

§

MacBadAccessX86(ExceptionCodeMacBadAccessX86Type)

§

MacBadInstructionArm(ExceptionCodeMacBadInstructionArmType)

§

MacBadInstructionPpc(ExceptionCodeMacBadInstructionPpcType)

§

MacBadInstructionX86(ExceptionCodeMacBadInstructionX86Type)

§

MacArithmeticArm(ExceptionCodeMacArithmeticArmType)

§

MacArithmeticPpc(ExceptionCodeMacArithmeticPpcType)

§

MacArithmeticX86(ExceptionCodeMacArithmeticX86Type)

§

MacSoftware(ExceptionCodeMacSoftwareType)

§

MacBreakpointArm(ExceptionCodeMacBreakpointArmType)

§

MacBreakpointPpc(ExceptionCodeMacBreakpointPpcType)

§

MacBreakpointX86(ExceptionCodeMacBreakpointX86Type)

§

MacResource(ExceptionCodeMacResourceTypeu64u64)

§

MacGuard(ExceptionCodeMacGuardTypeu64u64)

§

LinuxGeneral(ExceptionCodeLinuxu32)

A Linux/Android error code with no other interesting metadata.

§

LinuxSigill(ExceptionCodeLinuxSigillKind)

§

LinuxSigtrap(ExceptionCodeLinuxSigtrapKind)

§

LinuxSigbus(ExceptionCodeLinuxSigbusKind)

§

LinuxSigfpe(ExceptionCodeLinuxSigfpeKind)

§

LinuxSigsegv(ExceptionCodeLinuxSigsegvKind)

§

LinuxSigsys(ExceptionCodeLinuxSigsysKind)

§

WindowsGeneral(ExceptionCodeWindows)

A Windows error code with no other interesting metadata.

§

WindowsWinError(WinErrorWindows)

A Windows error from winerror.h.

§

WindowsWinErrorWithFacility(WinErrorFacilityWindowsWinErrorWindows)

A Windows error for a specific facility from winerror.h.

§

WindowsNtStatus(NtStatusWindows)

A Windows error from ntstatus.h

§

WindowsAccessViolation(ExceptionCodeWindowsAccessType)

ExceptionCodeWindows::EXCEPTION_ACCESS_VIOLATION but with details on the kind of access.

§

WindowsInPageError(ExceptionCodeWindowsInPageErrorTypeu64)

ExceptionCodeWindows::EXCEPTION_IN_PAGE_ERROR but with details on the kind of access. Second argument is a windows NTSTATUS value.

§

WindowsStackBufferOverrun(u64)

ExceptionCodeWindows::EXCEPTION_STACK_BUFFER_OVERRUN with an accompanying windows FAST_FAIL value.

§

WindowsUnknown(u32)

A Windows error with no known mapping.

§

Unknown(u32u32)

Implementations§

Heuristically identifies what kind of windows exception code this is.

Augments CrashReason::from_windows_error by also including ExceptionCodeWindows. Appropriate for an actual crash reason.

Heuristically identifies what kind of windows error code this is.

Appropriate for things like LastErrorValue() which may be non-fatal.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more

A string describing the crash reason.

This is OS- and possibly CPU-specific. For example, “EXCEPTION_ACCESS_VIOLATION” (Windows), “EXC_BAD_ACCESS / KERN_INVALID_ADDRESS” (Mac OS X), “SIGSEGV” (other Unix).

This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

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.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

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

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
Converts the given value to a String. Read more
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.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more