pub struct TrapEvent {
pub pc: u64,
pub syscall: Option<u32>,
pub name: String,
pub arg0: u64,
pub arg1: u64,
pub arg2: u64,
pub retval: Option<u64>,
pub error: bool,
}Expand description
One observed trap / translated syscall event.
Fields§
§pc: u64Guest PC at the trap (instruction address).
syscall: Option<u32>Darwin BSD syscall number (x16) when recognized; otherwise None.
name: StringShort label (exit, write, unknown, …).
arg0: u64First argument (x0) when applicable.
arg1: u64Second argument (x1) when applicable.
arg2: u64Third argument (x2) when applicable.
retval: Option<u64>Return value written to x0, if any.
error: boolDarwin error path: carry set, retval is positive errno.
Trait Implementations§
impl Eq for TrapEvent
impl StructuralPartialEq for TrapEvent
Auto Trait Implementations§
impl Freeze for TrapEvent
impl RefUnwindSafe for TrapEvent
impl Send for TrapEvent
impl Sync for TrapEvent
impl Unpin for TrapEvent
impl UnsafeUnpin for TrapEvent
impl UnwindSafe for TrapEvent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.