pub struct CrashParams {Show 16 fields
pub task: u32,
pub pid: i32,
pub ppid: i32,
pub uid: u32,
pub is_64_bit: bool,
pub thread: u32,
pub exception_type: i32,
pub exception_codes: Vec<i64>,
pub thread_state: ThreadState,
pub exception_state: ExceptionState,
pub process_name: Option<String>,
pub executable_path: Option<String>,
pub r_process_pid: i32,
pub date: Option<String>,
pub awake_system_uptime: u64,
pub cpu_type: CpuType,
}Expand description
Pre-gathered crash data passed to CrashRustler::new().
The binary (exc_handler) is responsible for all Mach/system calls;
this struct carries the results to the library’s pure-data constructor.
Fields§
§task: u32Mach task port for the crashed process.
pid: i32Process ID.
ppid: i32Parent process ID.
uid: u32User ID.
is_64_bit: boolWhether the process is 64-bit.
thread: u32Mach thread port of the crashing thread.
exception_type: i32Mach exception type (raw i32).
exception_codes: Vec<i64>Mach exception codes.
thread_state: ThreadStateThread state (register values + flavor).
exception_state: ExceptionStateException state from the faulting thread.
process_name: Option<String>Process name (from proc_pidpath last component).
executable_path: Option<String>Full executable path.
r_process_pid: i32Responsible process PID.
date: Option<String>Crash date as a formatted string.
awake_system_uptime: u64System uptime (awake time) at crash, in seconds.
cpu_type: CpuTypeCPU type of the crashed process.
Trait Implementations§
Source§impl Clone for CrashParams
impl Clone for CrashParams
Source§fn clone(&self) -> CrashParams
fn clone(&self) -> CrashParams
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 moreAuto Trait Implementations§
impl Freeze for CrashParams
impl RefUnwindSafe for CrashParams
impl Send for CrashParams
impl Sync for CrashParams
impl Unpin for CrashParams
impl UnsafeUnpin for CrashParams
impl UnwindSafe for CrashParams
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