#[repr(C)]pub struct ExceptionInfo {
pub error_code: u64,
pub rip: u64,
pub cs: u64,
pub rflags: u64,
pub rsp: u64,
pub ss: u64,
}Expand description
Exception information pushed onto the stack by the CPU during an excpection.
See AMD64 Architecture Programmer’s Manual, Volume 2 §8.9.3 Interrupt Stack Frame, pp. 283–284 Figure 8-14: Long-Mode Stack After Interrupt—Same Privilege, Figure 8-15: Long-Mode Stack After Interrupt—Higher Privilege Note: For exceptions that don’t provide an error code, we push a dummy value of 0.
Fields§
§error_code: u64Error code provided by the processor (or 0 if not applicable).
rip: u64Instruction pointer at the time of the exception.
cs: u64Code segment selector.
rflags: u64CPU flags register.
rsp: u64Stack pointer at the time of the exception.
ss: u64Stack segment selector.
Auto Trait Implementations§
impl Freeze for ExceptionInfo
impl RefUnwindSafe for ExceptionInfo
impl Send for ExceptionInfo
impl Sync for ExceptionInfo
impl Unpin for ExceptionInfo
impl UnwindSafe for ExceptionInfo
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