Struct crash_context::CrashContext
source · [−]#[repr(C)]pub struct CrashContext {
pub context: ucontext_t,
pub float_state: fpregset_t,
pub siginfo: signalfd_siginfo,
pub tid: pid_t,
}
Expand description
The full context for a linux/android crash
Fields
context: ucontext_t
Crashing thread context.
Note that we use crate::ucontext_t
instead of libc::ucontext_t
as libc’s differs between glibc and musl https://github.com/rust-lang/libc/pull/1646
even though the ucontext_t received from a signal will be the same
regardless of the libc implementation used as it is only arch specific
and not libc specific
float_state: fpregset_t
State of floating point registers.
This isn’t part of the user ABI for Linux arm
siginfo: signalfd_siginfo
The signal info for the crash
tid: pid_t
The id of the crashing thread
Implementations
Trait Implementations
sourceimpl Clone for CrashContext
impl Clone for CrashContext
sourcefn clone(&self) -> CrashContext
fn clone(&self) -> CrashContext
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Send for CrashContext
Auto Trait Implementations
impl RefUnwindSafe for CrashContext
impl !Sync for CrashContext
impl Unpin for CrashContext
impl UnwindSafe for CrashContext
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more