Enum minidump::CrashReason[][src]

pub enum CrashReason {
Show 28 variants MacGeneral(ExceptionCodeMacu32), MacBadAccessKern(ExceptionCodeMacBadAccessKernType), MacBadAccessArm(ExceptionCodeMacBadAccessArmType), MacBadAccessPpc(ExceptionCodeMacBadAccessPpcType), MacBadAccessX86(ExceptionCodeMacBadAccessX86Type), MacBadInstructionArm(ExceptionCodeMacBadInstructionArmType), MacBadInstructionPpc(ExceptionCodeMacBadInstructionPpcType), MacBadInstructionX86(ExceptionCodeMacBadInstructionX86Type), MacArithmeticPpc(ExceptionCodeMacArithmeticPpcType), MacArithmeticX86(ExceptionCodeMacArithmeticX86Type), MacSoftware(ExceptionCodeMacSoftwareType), MacBreakpointArm(ExceptionCodeMacBreakpointArmType), MacBreakpointPpc(ExceptionCodeMacBreakpointPpcType), MacBreakpointX86(ExceptionCodeMacBreakpointX86Type), MacResource(ExceptionCodeMacResourceTypeu64u64), LinuxGeneral(ExceptionCodeLinuxu32), LinuxSigill(ExceptionCodeLinuxSigillKind), LinuxSigbus(ExceptionCodeLinuxSigbusKind), LinuxSigfpe(ExceptionCodeLinuxSigfpeKind), LinuxSigsegv(ExceptionCodeLinuxSigsegvKind), WindowsGeneral(ExceptionCodeWindows), WindowsWinError(WinErrorWindows), 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.

Tuple Fields of MacGeneral

0: ExceptionCodeMac1: u32

Tuple Fields of MacBadAccessKern

0: ExceptionCodeMacBadAccessKernType

Tuple Fields of MacBadAccessArm

0: ExceptionCodeMacBadAccessArmType

Tuple Fields of MacBadAccessPpc

0: ExceptionCodeMacBadAccessPpcType

Tuple Fields of MacBadAccessX86

0: ExceptionCodeMacBadAccessX86Type

Tuple Fields of MacBadInstructionArm

0: ExceptionCodeMacBadInstructionArmType

Tuple Fields of MacBadInstructionPpc

0: ExceptionCodeMacBadInstructionPpcType

Tuple Fields of MacBadInstructionX86

0: ExceptionCodeMacBadInstructionX86Type

Tuple Fields of MacArithmeticPpc

0: ExceptionCodeMacArithmeticPpcType

Tuple Fields of MacArithmeticX86

0: ExceptionCodeMacArithmeticX86Type

Tuple Fields of MacSoftware

0: ExceptionCodeMacSoftwareType

Tuple Fields of MacBreakpointArm

0: ExceptionCodeMacBreakpointArmType

Tuple Fields of MacBreakpointPpc

0: ExceptionCodeMacBreakpointPpcType

Tuple Fields of MacBreakpointX86

0: ExceptionCodeMacBreakpointX86Type

Tuple Fields of MacResource

0: ExceptionCodeMacResourceType1: u642: u64
LinuxGeneral(ExceptionCodeLinuxu32)

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

Tuple Fields of LinuxGeneral

0: ExceptionCodeLinux1: u32

Tuple Fields of LinuxSigill

0: ExceptionCodeLinuxSigillKind

Tuple Fields of LinuxSigbus

0: ExceptionCodeLinuxSigbusKind

Tuple Fields of LinuxSigfpe

0: ExceptionCodeLinuxSigfpeKind

Tuple Fields of LinuxSigsegv

0: ExceptionCodeLinuxSigsegvKind
WindowsGeneral(ExceptionCodeWindows)

A Windows error code with no other interesting metadata.

Tuple Fields of WindowsGeneral

0: ExceptionCodeWindows
WindowsWinError(WinErrorWindows)

A Windows error from winerror.h.

Tuple Fields of WindowsWinError

0: WinErrorWindows
WindowsNtStatus(NtStatusWindows)

A Windows error from ntstatus.h

Tuple Fields of WindowsNtStatus

0: NtStatusWindows
WindowsAccessViolation(ExceptionCodeWindowsAccessType)

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

Tuple Fields of WindowsAccessViolation

0: ExceptionCodeWindowsAccessType

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

Tuple Fields of WindowsInPageError

0: ExceptionCodeWindowsInPageErrorType1: u64
WindowsStackBufferOverrun(u64)

ExceptionCodeWindows::EXCEPTION_STACK_BUFFER_OVERRUN with an accompanying windows FAST_FAIL value.

Tuple Fields of WindowsStackBufferOverrun

0: u64
WindowsUnknown(u32)

A Windows error with no known mapping.

Tuple Fields of WindowsUnknown

0: u32
Unknown(u32u32)

Tuple Fields of Unknown

0: u321: u32

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 !=.

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

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

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.