pub trait ExecutionCtxTrait: Sized {
// Required methods
fn on_memory_operation(&mut self, address_space: u32, ptr: u32, size: u32);
fn should_suspend<F>(
instret: u64,
pc: u32,
_arg: u64,
exec_state: &mut VmExecState<F, GuestMemory, Self>,
) -> bool;
// Provided method
fn on_terminate<F>(
_instret: u64,
_pc: u32,
_exec_state: &mut VmExecState<F, GuestMemory, Self>,
) { ... }
}Required Methods§
fn on_memory_operation(&mut self, address_space: u32, ptr: u32, size: u32)
fn should_suspend<F>( instret: u64, pc: u32, _arg: u64, exec_state: &mut VmExecState<F, GuestMemory, Self>, ) -> bool
Provided Methods§
fn on_terminate<F>( _instret: u64, _pc: u32, _exec_state: &mut VmExecState<F, GuestMemory, Self>, )
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.