pub trait ExecutionCtxTrait: Sized {
// Required methods
fn on_memory_operation(&mut self, address_space: u32, ptr: u32, size: u32);
fn should_suspend<F>(
vm_state: &mut VmExecState<F, GuestMemory, Self>,
) -> bool;
// Provided method
fn on_terminate<F>(_vm_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>(vm_state: &mut VmExecState<F, GuestMemory, Self>) -> bool
Provided Methods§
fn on_terminate<F>(_vm_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.