Skip to main content

CrashInfo

Struct CrashInfo 

Source
pub struct CrashInfo<'a> {
    pub code: u32,
    pub kind: u32,
    pub access: u32,
    pub addr: u64,
    pub ip: u64,
    pub base: u64,
    pub code0: u64,
    pub code1: u64,
    pub regs: [u64; 17],
    pub frames: [u64; 32],
    pub nframes: u32,
    pub msg: &'a str,
}
Expand description

what the crash handler knows (the CRASHINFO record of ASMLIB)

Fields§

§code: u32§kind: u32§access: u32§addr: u64§ip: u64§base: u64§code0: u64§code1: u64§regs: [u64; 17]§frames: [u64; 32]§nframes: u32§msg: &'a str

Implementations§

Source§

impl CrashInfo<'_>

Source

pub const fn empty() -> Self

Auto Trait Implementations§

§

impl<'a> Forget for CrashInfo<'a>

§

impl<'a> Freeze for CrashInfo<'a>

§

impl<'a> RefUnwindSafe for CrashInfo<'a>

§

impl<'a> Send for CrashInfo<'a>

§

impl<'a> Sync for CrashInfo<'a>

§

impl<'a> Unpin for CrashInfo<'a>

§

impl<'a> UnsafeUnpin for CrashInfo<'a>

§

impl<'a> UnwindSafe for CrashInfo<'a>

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 = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

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.