Enum fuel_vm::state::ExecuteState
source · pub enum ExecuteState {
Proceed,
Return(Word),
ReturnData(Bytes32),
Revert(Word),
}
Expand description
Resulting state of an instruction set execution.
Variants§
Proceed
The VM should proceed normally with the execution.
Return(Word)
The current context returned a Word
.
ReturnData(Bytes32)
The current context returned some data represented as its digest.
Revert(Word)
The set execution resulted in a RVRT
instruction.
Implementations§
source§impl ExecuteState
impl ExecuteState
sourcepub const fn should_continue(&self) -> bool
pub const fn should_continue(&self) -> bool
Return true if the VM execution should continue.
Trait Implementations§
source§impl Clone for ExecuteState
impl Clone for ExecuteState
source§fn clone(&self) -> ExecuteState
fn clone(&self) -> ExecuteState
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ExecuteState
impl Debug for ExecuteState
source§impl Default for ExecuteState
impl Default for ExecuteState
source§impl Hash for ExecuteState
impl Hash for ExecuteState
source§impl PartialEq<ExecuteState> for ExecuteState
impl PartialEq<ExecuteState> for ExecuteState
source§fn eq(&self, other: &ExecuteState) -> bool
fn eq(&self, other: &ExecuteState) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ExecuteState
impl Eq for ExecuteState
impl StructuralEq for ExecuteState
impl StructuralPartialEq for ExecuteState
Auto Trait Implementations§
impl RefUnwindSafe for ExecuteState
impl Send for ExecuteState
impl Sync for ExecuteState
impl Unpin for ExecuteState
impl UnwindSafe for ExecuteState
Blanket Implementations§
source§impl<T> AnyDebug for Twhere
T: Any + Debug,
impl<T> AnyDebug for Twhere T: Any + Debug,
source§fn as_any_ref(&self) -> &(dyn Any + 'static)
fn as_any_ref(&self) -> &(dyn Any + 'static)
Returns a reference to the underlying type as
Any
.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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more