Enum wasm_instrument::gas_metering::GasMeter
source · pub enum GasMeter {
External {
module: &'static str,
function: &'static str,
},
Internal {
global: &'static str,
func_instructions: Instructions,
cost: u64,
},
}
Expand description
Implementation details of the specific method of the gas metering.
Variants§
External
Gas metering with an external function.
Fields
Internal
Gas metering with a local function and a mutable global.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GasMeter
impl RefUnwindSafe for GasMeter
impl Send for GasMeter
impl Sync for GasMeter
impl Unpin for GasMeter
impl UnwindSafe for GasMeter
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)