[][src]Trait solana_sdk::process_instruction::ComputeMeter

pub trait ComputeMeter {
    fn consume(&mut self, amount: u64) -> Result<(), InstructionError>;
fn get_remaining(&self) -> u64; }

Compute meter

Required methods

fn consume(&mut self, amount: u64) -> Result<(), InstructionError>

Consume compute units

fn get_remaining(&self) -> u64

Get the number of remaining compute units

Loading content...

Implementors

impl ComputeMeter for MockComputeMeter[src]

Loading content...