pub struct NeoVM {Show 14 fields
pub state: VMState,
pub eval_stack: Vec<StackItem>,
pub invocation_stack: Vec<ExecutionContext>,
pub gas_consumed: u64,
pub gas_limit: u64,
pub max_stack_depth: usize,
pub max_invocation_depth: usize,
pub notifications: Vec<StackItem>,
pub logs: Vec<String>,
pub trace: ExecutionTrace,
pub tracing_enabled: bool,
pub local_slots: Vec<StackItem>,
pub argument_slots: Vec<StackItem>,
pub static_slots: Vec<StackItem>,
}Fields§
§state: VMState§eval_stack: Vec<StackItem>§invocation_stack: Vec<ExecutionContext>§gas_consumed: u64§gas_limit: u64§max_stack_depth: usize§max_invocation_depth: usize§notifications: Vec<StackItem>§logs: Vec<String>§trace: ExecutionTrace§tracing_enabled: bool§local_slots: Vec<StackItem>§argument_slots: Vec<StackItem>§static_slots: Vec<StackItem>Implementations§
Source§impl NeoVM
impl NeoVM
Sourcepub fn with_limits(
gas_limit: u64,
max_stack_depth: usize,
max_invocation_depth: usize,
) -> Self
pub fn with_limits( gas_limit: u64, max_stack_depth: usize, max_invocation_depth: usize, ) -> Self
Create a new VM with custom limits
pub fn enable_tracing(&mut self)
pub fn load_script(&mut self, script: Vec<u8>) -> Result<(), VMError>
pub fn execute_next(&mut self) -> Result<(), VMError>
Auto Trait Implementations§
impl Freeze for NeoVM
impl RefUnwindSafe for NeoVM
impl Send for NeoVM
impl Sync for NeoVM
impl Unpin for NeoVM
impl UnwindSafe for NeoVM
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