Enum zx::ExceptionType

source ·
pub enum ExceptionType {
Show 13 variants General, FatalPageFault { status: Status, }, UndefinedInstruction, SoftwareBreakpoint, HardwareBreakpoint, UnalignedAccess, ThreadStarting, ThreadExiting, PolicyError(PolicyCode), ProcessStarting, ProcessNameChanged, UnknownUserGenerated { code: u32, data: u32, }, Unknown { ty: u32, code: u32, data: u32, },
}
Expand description

The type of an exception observed.

Variants§

§

General

A general exception occurred.

§

FatalPageFault

The process generated an unhandled page fault.

Fields

§status: Status

Contains the error code returned by the page fault handler.

§

UndefinedInstruction

The process attempted to execute an undefined CPU instruction.

§

SoftwareBreakpoint

A software breakpoint was reached by the process.

§

HardwareBreakpoint

A hardware breakpoint was reached by the process.

§

UnalignedAccess

The process attempted to perform an unaligned memory access.

§

ThreadStarting

A thread is starting.

This exception is sent to debuggers only (ZX_EXCEPTION_CHANNEL_TYPE_DEBUGGER). The thread that generates this exception is paused until it the debugger handles the exception.

§

ThreadExiting

A thread is exiting.

This exception is sent to debuggers only (ZX_EXCEPTION_CHANNEL_TYPE_DEBUGGER).

This exception is different from ZX_EXCP_GONE in that a debugger can still examine thread state.

The thread that generates this exception is paused until it the debugger handles the exception.

§

PolicyError(PolicyCode)

This exception is generated when a syscall fails with a job policy error (for example, an invalid handle argument is passed to the syscall when the ZX_POL_BAD_HANDLE policy is enabled) and ZX_POL_ACTION_EXCEPTION is set for the policy. The thread that generates this exception is paused until it the debugger handles the exception. Additional data about the type of policy error can be found in the |synth_code| field of the report and will be a ZX_EXCP_POLICY_CODE_* value.

§

ProcessStarting

A process is starting.

This exception is sent to job debuggers only (ZX_EXCEPTION_CHANNEL_TYPE_JOB_DEBUGGER).

The thread that generates this exception is paused until it the debugger handles the exception.

§

ProcessNameChanged

A user-generated exception indicating to a debugger that the process’ name has changed.

§

UnknownUserGenerated

The exception was user-generated but of an unknown type.

Fields

§code: u32
§data: u32
§

Unknown

An unknown exception type.

Fields

§ty: u32
§code: u32
§data: u32

Trait Implementations§

source§

impl Clone for ExceptionType

source§

fn clone(&self) -> ExceptionType

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for ExceptionType

source§

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

Formats the value using the given formatter. Read more
source§

impl Copy for ExceptionType

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> CloneToUninit for T
where T: Clone,

source§

default unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> CloneToUninit for T
where T: Copy,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. 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> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

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>,

§

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.