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

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

Instruction meter

Required methods

fn consume(&mut self, amount: u64)[src][]

Consume instructions

fn get_remaining(&self) -> u64[src][]

Get the number of remaining instructions allowed

Implementors

impl InstructionMeter for DefaultInstructionMeter[src][+]

impl InstructionMeter for ThisInstructionMeter