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