Enum cfx_vm_types::GasLeft
source · 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
Return or Revert instruction must be processed.
Implementations§
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§
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