Struct ExceptionType

Source
#[repr(C)]
pub struct ExceptionType(/* private fields */);
Expand description

Represents supported CPU exceptions.

Implementations§

Source§

impl ExceptionType

Source

pub const EXCEPT_EBC_UNDEFINED: Self

Undefined Exception

Source

pub const EXCEPT_EBC_DIVIDE_ERROR: Self

Divide-by-zero Error

Source

pub const EXCEPT_EBC_DEBUG: Self

Debug Exception

Source

pub const EXCEPT_EBC_BREAKPOINT: Self

Breakpoint

Source

pub const EXCEPT_EBC_OVERFLOW: Self

Overflow

Source

pub const EXCEPT_EBC_INVALID_OPCODE: Self

Invalid Opcode

Source

pub const EXCEPT_EBC_STACK_FAULT: Self

Stack-Segment Fault

Source

pub const EXCEPT_EBC_ALIGNMENT_CHECK: Self

Alignment Check

Source

pub const EXCEPT_EBC_INSTRUCTION_ENCODING: Self

Instruction Encoding Exception

Source

pub const EXCEPT_EBC_BAD_BREAK: Self

Bad Breakpoint Exception

Source

pub const EXCEPT_EBC_SINGLE_STEP: Self

Single Step Exception

Source§

impl ExceptionType

Source

pub const EXCEPT_X64_DIVIDE_ERROR: Self

Available on x86-64 only.

Divide-by-zero Error

Source

pub const EXCEPT_X64_DEBUG: Self

Available on x86-64 only.

Debug Exception

Source

pub const EXCEPT_X64_NMI: Self

Available on x86-64 only.

Non-maskable Interrupt

Source

pub const EXCEPT_X64_BREAKPOINT: Self

Available on x86-64 only.

Breakpoint

Source

pub const EXCEPT_X64_OVERFLOW: Self

Available on x86-64 only.

Overflow

Source

pub const EXCEPT_X64_BOUND: Self

Available on x86-64 only.

Bound Range Exceeded

Source

pub const EXCEPT_X64_INVALID_OPCODE: Self

Available on x86-64 only.

Invalid Opcode

Source

pub const EXCEPT_X64_DOUBLE_FAULT: Self

Available on x86-64 only.

Double Fault

Source

pub const EXCEPT_X64_INVALID_TSS: Self

Available on x86-64 only.

Invalid TSS

Source

pub const EXCEPT_X64_SEG_NOT_PRESENT: Self

Available on x86-64 only.

Segment Not Present

Source

pub const EXCEPT_X64_STACK_FAULT: Self

Available on x86-64 only.

Stack-Segment Fault

Source

pub const EXCEPT_X64_GP_FAULT: Self

Available on x86-64 only.

General Protection Fault

Source

pub const EXCEPT_X64_PAGE_FAULT: Self

Available on x86-64 only.

Page Fault

Source

pub const EXCEPT_X64_FP_ERROR: Self

Available on x86-64 only.

x87 Floating-Point Exception

Source

pub const EXCEPT_X64_ALIGNMENT_CHECK: Self

Available on x86-64 only.

Alignment Check

Source

pub const EXCEPT_X64_MACHINE_CHECK: Self

Available on x86-64 only.

Machine Check

Source

pub const EXCEPT_X64_SIMD: Self

Available on x86-64 only.

SIMD Floating-Point Exception

Trait Implementations§

Source§

impl Debug for ExceptionType

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

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> Pointee for T

Source§

type Metadata = ()

The metadata type for pointers and references to this type.
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.