Struct TrapFrame

#[repr(C)]
pub struct TrapFrame {
Show 34 fields pub PC: u32, pub PS: u32, pub A0: u32, pub A1: u32, pub A2: u32, pub A3: u32, pub A4: u32, pub A5: u32, pub A6: u32, pub A7: u32, pub A8: u32, pub A9: u32, pub A10: u32, pub A11: u32, pub A12: u32, pub A13: u32, pub A14: u32, pub A15: u32, pub SAR: u32, pub EXCCAUSE: u32, pub EXCVADDR: u32, pub LBEG: u32, pub LEND: u32, pub LCOUNT: u32, pub THREADPTR: u32, pub SCOMPARE1: u32, pub BR: u32, pub ACCLO: u32, pub ACCHI: u32, pub M0: u32, pub M1: u32, pub M2: u32, pub M3: u32, pub F64R_LO_CPENABLE: u32,
}
Available on crate feature unstable only.
Expand description

State of the CPU saved when entering exception or interrupt

Must be aligned with assembly frame format in asm.rs

Fields§

§PC: u32§PS: u32§A0: u32§A1: u32§A2: u32§A3: u32§A4: u32§A5: u32§A6: u32§A7: u32§A8: u32§A9: u32§A10: u32§A11: u32§A12: u32§A13: u32§A14: u32§A15: u32§SAR: u32§EXCCAUSE: u32§EXCVADDR: u32§LBEG: u32§LEND: u32§LCOUNT: u32§THREADPTR: u32§SCOMPARE1: u32§BR: u32§ACCLO: u32§ACCHI: u32§M0: u32§M1: u32§M2: u32§M3: u32§F64R_LO_CPENABLE: u32

Implementations§

§

impl Context

pub const fn new() -> Context

Creates a new, zeroed out context.

Trait Implementations§

§

impl Clone for Context

§

fn clone(&self) -> Context

Returns a copy of the value. Read more
1.0.0§

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

Performs copy-assignment from source. Read more
§

impl Debug for Context

§

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

Formats the value using the given formatter. Read more
§

impl Default for Context

§

fn default() -> Context

Returns the “default value” for a type. Read more
§

impl Copy for Context

Auto Trait Implementations§

§

impl Freeze for Context

§

impl RefUnwindSafe for Context

§

impl Send for Context

§

impl Sync for Context

§

impl Unpin for Context

§

impl UnwindSafe for Context

Blanket Implementations§

§

impl<T> Any for T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

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

§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

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

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

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

§

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

Source§

type Output = T

Should always be Self
§

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

§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

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.
§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.