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

Instruction meter

Required Methods

Consume instructions

Get the number of remaining instructions allowed

Implementors