Struct signal_handler::SignalContext
source · pub struct SignalContext {
pub instruction_pointer: VirtualAddress,
pub stack_pointer: VirtualAddress,
pub signal: Signal,
pub error_code: Option<ErrorCode>,
}
Expand description
Information that is passed to a registered SignalHandler
about an exception that occurred during execution.
Fields§
§instruction_pointer: VirtualAddress
§stack_pointer: VirtualAddress
§signal: Signal
§error_code: Option<ErrorCode>
Trait Implementations§
source§impl Clone for SignalContext
impl Clone for SignalContext
source§fn clone(&self) -> SignalContext
fn clone(&self) -> SignalContext
Returns a copy 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 SignalContext
impl Debug for SignalContext
source§impl PartialEq<SignalContext> for SignalContext
impl PartialEq<SignalContext> for SignalContext
source§fn eq(&self, other: &SignalContext) -> bool
fn eq(&self, other: &SignalContext) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for SignalContext
impl Eq for SignalContext
impl StructuralEq for SignalContext
impl StructuralPartialEq for SignalContext
Auto Trait Implementations§
impl RefUnwindSafe for SignalContext
impl Send for SignalContext
impl Sync for SignalContext
impl Unpin for SignalContext
impl UnwindSafe for SignalContext
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