#[repr(C)]pub struct SuspendContext {
pub stack_ptr: *mut u64,
pub entry: extern "C" fn(u64) -> !,
pub arg: u64,
}Expand description
Data used by warm_boot_entry to restore the CPU state after resuming.
Fields§
§stack_ptr: *mut u64Value to which to set the stack pointer before calling entry.
entry: extern "C" fn(u64) -> !Entry point to call after resuming.
arg: u64Parameter to pass to entry.
Trait Implementations§
Source§impl Clone for SuspendContext
impl Clone for SuspendContext
Source§fn clone(&self) -> SuspendContext
fn clone(&self) -> SuspendContext
Returns a duplicate of the value. Read more
1.0.0 · 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 SuspendContext
impl Debug for SuspendContext
impl Copy for SuspendContext
Auto Trait Implementations§
impl Freeze for SuspendContext
impl RefUnwindSafe for SuspendContext
impl !Send for SuspendContext
impl !Sync for SuspendContext
impl Unpin for SuspendContext
impl UnsafeUnpin for SuspendContext
impl UnwindSafe for SuspendContext
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