Skip to main content

VmStateAccessor

Trait VmStateAccessor 

Source
pub trait VmStateAccessor: Send + Sync {
    // Required methods
    fn current_frame(&self) -> Option<FrameInfo>;
    fn all_frames(&self) -> Vec<FrameInfo>;
    fn caller_frame(&self) -> Option<FrameInfo>;
    fn current_args(&self) -> Vec<ValueWord>;
    fn current_locals(&self) -> Vec<(String, ValueWord)>;
    fn module_bindings(&self) -> Vec<(String, ValueWord)>;

    // Provided method
    fn instruction_count(&self) -> usize { ... }
}
Expand description

Trait providing read access to VM state for state module functions.

Required Methods§

Provided Methods§

Source

fn instruction_count(&self) -> usize

Total instruction count at the time of capture. Default impl for compat.

Implementors§