pub struct InvocationContext {
pub return_address: NativePointer,
pub context: CpuContext,
pub thread_id: u32,
pub depth: u32,
/* private fields */
}Expand description
Per-invocation object that contains useful properties about the program at the point of interception.
This is equivalent to the this object accessible in the Interceptor
callback in the JavaScript API.
The get and set methods can be used to store arbitrary
Rust objects that will be accessible at any point during the invocation.
For example, this could be used to store values during on_enter that can
later be retrieved during on_leave.
Fields§
§return_address: NativePointerReturn address of the intercepted function.
context: CpuContextCurrent CPU context.
thread_id: u32OS thread ID.
depth: u32Call depth relative to other invocations.
Implementations§
Trait Implementations§
Source§impl Debug for InvocationContext
impl Debug for InvocationContext
Source§impl FromWasmAbi for InvocationContext
impl FromWasmAbi for InvocationContext
Auto Trait Implementations§
impl Freeze for InvocationContext
impl RefUnwindSafe for InvocationContext
impl Send for InvocationContext
impl Sync for InvocationContext
impl Unpin for InvocationContext
impl UnsafeUnpin for InvocationContext
impl UnwindSafe for InvocationContext
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