[][src]Trait solana_rbpf::vm::InstructionMeter

pub trait InstructionMeter {
    fn consume(&mut self, amount: u64);
fn get_remaining(&self) -> u64; }

Instruction meter

Required methods

fn consume(&mut self, amount: u64)

Consume instructions

fn get_remaining(&self) -> u64

Get the number of remaining instructions allowed

Loading content...

Implementors

Loading content...