#[repr(C)]pub struct ExceptionFrame { /* private fields */ }
Expand description
Registers stacked (pushed onto the stack) during an exception.
Implementations§
Source§impl ExceptionFrame
impl ExceptionFrame
Sourcepub unsafe fn set_r0(&mut self, value: u32)
pub unsafe fn set_r0(&mut self, value: u32)
Sets the stacked value of (general purpose) register 0.
§Safety
This affects the r0
register of the preempted code, which must not rely on it getting
restored to its previous value.
Sourcepub unsafe fn set_r1(&mut self, value: u32)
pub unsafe fn set_r1(&mut self, value: u32)
Sets the stacked value of (general purpose) register 1.
§Safety
This affects the r1
register of the preempted code, which must not rely on it getting
restored to its previous value.
Sourcepub unsafe fn set_r2(&mut self, value: u32)
pub unsafe fn set_r2(&mut self, value: u32)
Sets the stacked value of (general purpose) register 2.
§Safety
This affects the r2
register of the preempted code, which must not rely on it getting
restored to its previous value.
Sourcepub unsafe fn set_r3(&mut self, value: u32)
pub unsafe fn set_r3(&mut self, value: u32)
Sets the stacked value of (general purpose) register 3.
§Safety
This affects the r3
register of the preempted code, which must not rely on it getting
restored to its previous value.
Sourcepub unsafe fn set_r12(&mut self, value: u32)
pub unsafe fn set_r12(&mut self, value: u32)
Sets the stacked value of (general purpose) register 12.
§Safety
This affects the r12
register of the preempted code, which must not rely on it getting
restored to its previous value.
Sourcepub unsafe fn set_lr(&mut self, value: u32)
pub unsafe fn set_lr(&mut self, value: u32)
Sets the stacked value of the Link Register.
§Safety
This affects the lr
register of the preempted code, which must not rely on it getting
restored to its previous value.
Trait Implementations§
Source§impl Clone for ExceptionFrame
impl Clone for ExceptionFrame
Source§fn clone(&self) -> ExceptionFrame
fn clone(&self) -> ExceptionFrame
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ExceptionFrame
impl Debug for ExceptionFrame
impl Copy for ExceptionFrame
Auto Trait Implementations§
impl Freeze for ExceptionFrame
impl RefUnwindSafe for ExceptionFrame
impl Send for ExceptionFrame
impl Sync for ExceptionFrame
impl Unpin for ExceptionFrame
impl UnwindSafe for ExceptionFrame
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)