pub struct ComputeMeter { /* private fields */ }
Expand description
Compute meter
Implementations§
source§impl ComputeMeter
impl ComputeMeter
sourcepub fn get_remaining(&self) -> u64
pub fn get_remaining(&self) -> u64
Get the number of remaining compute units
sourcepub fn mock_set_remaining(&mut self, remaining: u64)
pub fn mock_set_remaining(&mut self, remaining: u64)
Set compute units
Only use for tests and benchmarks