[−][src]Struct x86_64::structures::idt::InterruptStackFrame
Wrapper type for the interrupt stack frame pushed by the CPU.
This type derefs to an InterruptStackFrameValue
, which allows reading the actual values.
This wrapper type ensures that no accidental modification of the interrupt stack frame
occurs, which can cause undefined behavior (see the as_mut
method for more information).
Methods
impl InterruptStackFrame
[src]
pub unsafe fn as_mut(&mut self) -> &mut InterruptStackFrameValue
[src]
Gives mutable access to the contents of the interrupt stack frame.
This function is unsafe since modifying the content of the interrupt stack frame can easily lead to undefined behavior. For example, by writing an invalid value to the instruction pointer field, the CPU can jump to arbitrary code at the end of the interrupt.
Trait Implementations
impl Debug for InterruptStackFrame
[src]
impl Deref for InterruptStackFrame
[src]
type Target = InterruptStackFrameValue
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
Auto Trait Implementations
impl Send for InterruptStackFrame
impl Sync for InterruptStackFrame
impl Unpin for InterruptStackFrame
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
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>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,