Struct zircon_object::task::ExceptionObject[][src]

pub struct ExceptionObject { /* fields omitted */ }

The exception object received from the exception channel.

This will be transmitted to registered exception handlers in userspace and provides them with exception state and control functionality. We do not send exception directly since it’s hard to figure out when will the handle close.

Implementations

impl ExceptionObject[src]

pub fn get_thread_handle(&self) -> Handle[src]

Create a handle for the exception’s thread.

pub fn get_process_handle(&self) -> ZxResult<Handle>[src]

Create a handle for the exception’s process.

pub fn state(&self) -> u32[src]

Get whether closing the exception handle will finish exception processing and resume the underlying thread.

pub fn set_state(&self, state: u32) -> ZxResult[src]

Set whether closing the exception handle will finish exception processing and resume the underlying thread.

pub fn strategy(&self) -> u32[src]

Get whether the debugger gets a ‘second chance’ at handling the exception if the process-level handler fails to do so.

pub fn set_strategy(&self, strategy: u32) -> ZxResult[src]

Set whether the debugger gets a ‘second chance’ at handling the exception if the process-level handler fails to do so.

Trait Implementations

impl Debug for ExceptionObject[src]

impl Drop for ExceptionObject[src]

impl KernelObject for ExceptionObject[src]

Auto Trait Implementations

impl !RefUnwindSafe for ExceptionObject

impl Send for ExceptionObject

impl Sync for ExceptionObject

impl Unpin for ExceptionObject

impl !UnwindSafe for ExceptionObject

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Downcast for T where
    T: Any
[src]

impl<T> DowncastSync for T where
    T: Send + Sync + Any
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.