pub struct ComputeMeter { /* private fields */ }
Expand description
Compute meter
Implementations
sourceimpl 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
Auto Trait Implementations
impl RefUnwindSafe for ComputeMeter
impl Send for ComputeMeter
impl Sync for ComputeMeter
impl Unpin for ComputeMeter
impl UnwindSafe for ComputeMeter
Blanket Implementations
sourceimpl<T> AbiExample for T
impl<T> AbiExample for T
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more