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)

Tuple Fields

1: u32

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

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)

Tuple Fields

1: u64
2: u64

LinuxGeneral(ExceptionCodeLinuxu32)

Tuple Fields

1: u32

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

LinuxSigill(ExceptionCodeLinuxSigillKind)

LinuxSigbus(ExceptionCodeLinuxSigbusKind)

LinuxSigfpe(ExceptionCodeLinuxSigfpeKind)

LinuxSigsegv(ExceptionCodeLinuxSigsegvKind)

WindowsGeneral(ExceptionCodeWindows)

Tuple Fields

A Windows error code with no other interesting metadata.

WindowsWinError(WinErrorWindows)

Tuple Fields

A Windows error from winerror.h.

WindowsNtStatus(NtStatusWindows)

Tuple Fields

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)

Tuple Fields

0: u64

ExceptionCodeWindows::EXCEPTION_STACK_BUFFER_OVERRUN with an accompanying windows FAST_FAIL value.

WindowsUnknown(u32)

Tuple Fields

0: u32

A Windows error with no known mapping.

Unknown(u32u32)

Tuple Fields

0: u32
1: 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)

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.