#[repr(C)]pub struct SignalFrame {Show 21 fields
pub trampoline_ret_addr: u64,
pub signum: u64,
pub saved_mask: u64,
pub rax: u64,
pub rbx: u64,
pub rcx: u64,
pub rdx: u64,
pub rsi: u64,
pub rdi: u64,
pub rbp: u64,
pub rsp: u64,
pub r8: u64,
pub r9: u64,
pub r10: u64,
pub r11: u64,
pub r12: u64,
pub r13: u64,
pub r14: u64,
pub r15: u64,
pub rip: u64,
pub rflags: u64,
}Expand description
Saved thread context pushed onto the user stack during signal delivery.
This is a C-compatible structure so that the signal handler trampoline can
pass a pointer to it back to sys_sigreturn. The layout must remain stable
across kernel versions for ABI compatibility.
Fields§
§trampoline_ret_addr: u64Address of the sigreturn trampoline code placed just after this struct.
signum: u64Signal number that caused this delivery.
saved_mask: u64The process signal mask at the time of delivery (restored on sigreturn).
rax: u64§rbx: u64§rcx: u64§rdx: u64§rsi: u64§rdi: u64§rbp: u64§rsp: u64§r8: u64§r9: u64§r10: u64§r11: u64§r12: u64§r13: u64§r14: u64§r15: u64§rip: u64§rflags: u64Trait Implementations§
Source§impl Clone for SignalFrame
impl Clone for SignalFrame
Source§fn clone(&self) -> SignalFrame
fn clone(&self) -> SignalFrame
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SignalFrame
impl Debug for SignalFrame
impl Copy for SignalFrame
Auto Trait Implementations§
impl Freeze for SignalFrame
impl RefUnwindSafe for SignalFrame
impl Send for SignalFrame
impl Sync for SignalFrame
impl Unpin for SignalFrame
impl UnwindSafe for SignalFrame
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)