ExceptionType

Enum ExceptionType 

Source
#[repr(i32)]
pub enum ExceptionType {
Show 13 variants BadAccess = 1, BadInstruction = 2, Arithmetic = 3, Emulation = 4, Software = 5, Breakpoint = 6, SysCall = 7, MachSysCall = 8, RpcAlert = 9, Crash = 10, Resource = 11, Guard = 12, CorpseNotify = 13,
}
Expand description

High level exception types

exception_types.h

Variants§

§

BadAccess = 1

Could not access memory. (SIGSEGV/SIGBUS)

Code field contains kern_return_t describing error. Subcode field contains bad memory address.

§

BadInstruction = 2

Instruction failed. (SIGILL)

Illegal or undfined instruction or operand.

§

Arithmetic = 3

Arithmetic exception (SIGFPE)

Exact nature of the exception is in code field.

§

Emulation = 4

Emulation instruction

Emulation support instruction encountered Details in code and subcode fields.

§

Software = 5

Software generated exception

Exaction exception is in the code field. Codes 0 - 0xffff reserved to hardware. Codes 0x10000 - 0x1ffff reserved for OS emulation (Unix)

§

Breakpoint = 6

Trace, breakpoint, etc

Details in the code field

§

SysCall = 7

System calls

§

MachSysCall = 8

Mach system calls

§

RpcAlert = 9

RPC alert

§

Crash = 10

Abnormal process exit

§

Resource = 11

Hit resource consumption limit

Exact resource is in the code field.

§

Guard = 12

Violated guarded resource protections

§

CorpseNotify = 13

Abnormal process exited to corpse state

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.