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
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more