pub struct GasLeft;Expand description
Indicates that all remaining gas should be sent to a transaction.
Usually unwise, other than for synchronous calls, you always want to have some gas left in the contract after the call.
Trait Implementations§
Source§impl<Env> AnnotatedValue<Env, u64> for GasLeftwhere
Env: TxEnv,
impl<Env> AnnotatedValue<Env, u64> for GasLeftwhere
Env: TxEnv,
fn annotation(&self, env: &Env) -> ManagedBuffer<Env::Api>
Source§fn to_value(&self, _env: &Env) -> u64
fn to_value(&self, _env: &Env) -> u64
Produces the value from a reference of the annotated type. Might involve a
.clone() in some cases.Source§fn into_value(self, env: &Env) -> T
fn into_value(self, env: &Env) -> T
Consumes annotated value to produce actual value. Read more