Trait multiversx_sc::types::TxGas

source ·
pub trait TxGas<Env>
where Env: TxEnv,
{ // Required methods fn gas_annotation(&self, env: &Env) -> ManagedBuffer<Env::Api>; fn gas_value(&self, env: &Env) -> u64; fn explicit_or_gas_left(&self, env: &Env) -> u64; }

Required Methods§

source

fn gas_annotation(&self, env: &Env) -> ManagedBuffer<Env::Api>

source

fn gas_value(&self, env: &Env) -> u64

source

fn explicit_or_gas_left(&self, env: &Env) -> u64

Implementations on Foreign Types§

source§

impl<Env> TxGas<Env> for ()
where Env: TxEnv,

source§

fn gas_annotation(&self, env: &Env) -> ManagedBuffer<<Env as TxEnv>::Api>

source§

fn gas_value(&self, env: &Env) -> u64

source§

fn explicit_or_gas_left(&self, _env: &Env) -> u64

Implementors§

source§

impl<Env, GasValue> TxGas<Env> for ExplicitGas<GasValue>
where Env: TxEnv, GasValue: TxGasValue<Env>,