Enum fuel_vm::state::ProgramState
source · pub enum ProgramState {
Return(Word),
ReturnData(Bytes32),
Revert(Word),
}
Expand description
Resulting state of a transaction/program execution.
Variants§
Return(Word)
The transaction returned a Word
.
ReturnData(Bytes32)
The transaction returned some data represented as its digest.
Revert(Word)
The transaction execution resulted in a RVRT
instruction.
Trait Implementations§
source§impl Clone for ProgramState
impl Clone for ProgramState
source§fn clone(&self) -> ProgramState
fn clone(&self) -> ProgramState
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 ProgramState
impl Debug for ProgramState
source§impl<Tx> From<StateTransition<Tx>> for ProgramState
impl<Tx> From<StateTransition<Tx>> for ProgramState
source§fn from(t: StateTransition<Tx>) -> ProgramState
fn from(t: StateTransition<Tx>) -> ProgramState
Converts to this type from the input type.
source§impl<'a, Tx: Clone> From<StateTransitionRef<'a, Tx>> for ProgramState
impl<'a, Tx: Clone> From<StateTransitionRef<'a, Tx>> for ProgramState
source§fn from(t: StateTransitionRef<'a, Tx>) -> ProgramState
fn from(t: StateTransitionRef<'a, Tx>) -> ProgramState
Converts to this type from the input type.
source§impl Hash for ProgramState
impl Hash for ProgramState
source§impl PartialEq<ProgramState> for ProgramState
impl PartialEq<ProgramState> for ProgramState
source§fn eq(&self, other: &ProgramState) -> bool
fn eq(&self, other: &ProgramState) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ProgramState
impl Eq for ProgramState
impl StructuralEq for ProgramState
impl StructuralPartialEq for ProgramState
Auto Trait Implementations§
impl RefUnwindSafe for ProgramState
impl Send for ProgramState
impl Sync for ProgramState
impl Unpin for ProgramState
impl UnwindSafe for ProgramState
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