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
impl<Env> TxGasValue<Env> for GasLeftwhere
Env: TxEnv,
Auto Trait Implementations§
impl Freeze for GasLeft
impl RefUnwindSafe for GasLeft
impl Send for GasLeft
impl Sync for GasLeft
impl Unpin for GasLeft
impl UnwindSafe for GasLeft
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