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<KindedSlot>;
    fn current_locals(&self) -> Vec<(String, KindedSlot)>;
    fn module_bindings(&self) -> Vec<(String, KindedSlot)>;

    // 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.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§