pub enum GasLeft {
Known(U256),
NeedsReturn {
gas_left: U256,
data: ReturnData,
apply_state: bool,
},
}Expand description
Gas Left: either it is a known value, or it needs to be computed by processing a return instruction.
Variants
Known(U256)
Known gas left
NeedsReturn
Fields
gas_left: U256Amount of gas left.
data: ReturnDataReturn data buffer.
apply_state: boolApply or revert state changes on revert.
Return or Revert instruction must be processed.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for GasLeft
impl Send for GasLeft
impl Sync for GasLeft
impl Unpin for GasLeft
impl UnwindSafe for GasLeft
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more