pub struct TrapHandlerRegs {
pub rip: u64,
pub rsp: u64,
pub rbp: u64,
pub rdi: u64,
pub rsi: u64,
}Expand description
Registers which must be updated upon return from a trap handler.
The exact set of registers that need to be updated varies depending on the target. Note that all registers must be updated to the specified values, otherwise behavior is undefined.
To catch any issues at compilation time, it is recommended to use Rust’s pattern matching syntax to extract the individual registers from this struct.
let TrapHandlerRegs { rip, rsp, rbp, rdi, rsi } = regs;Fields§
§rip: u64§rsp: u64§rbp: u64§rdi: u64§rsi: u64Trait Implementations§
Source§impl Clone for TrapHandlerRegs
impl Clone for TrapHandlerRegs
Source§fn clone(&self) -> TrapHandlerRegs
fn clone(&self) -> TrapHandlerRegs
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TrapHandlerRegs
impl Debug for TrapHandlerRegs
impl Copy for TrapHandlerRegs
Auto Trait Implementations§
impl Freeze for TrapHandlerRegs
impl RefUnwindSafe for TrapHandlerRegs
impl Send for TrapHandlerRegs
impl Sync for TrapHandlerRegs
impl Unpin for TrapHandlerRegs
impl UnsafeUnpin for TrapHandlerRegs
impl UnwindSafe for TrapHandlerRegs
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
Mutably borrows from an owned value. Read more