Struct fuel_vm::state::StateTransition
source · pub struct StateTransition<Tx> { /* private fields */ }
Expand description
Representation of the result of a transaction execution.
Implementations§
source§impl<Tx> StateTransition<Tx>
impl<Tx> StateTransition<Tx>
sourcepub const fn new(state: ProgramState, tx: Tx, receipts: Vec<Receipt>) -> Self
pub const fn new(state: ProgramState, tx: Tx, receipts: Vec<Receipt>) -> Self
Create a new state transition representation.
sourcepub const fn state(&self) -> &ProgramState
pub const fn state(&self) -> &ProgramState
Program state representation.
sourcepub fn should_revert(&self) -> bool
pub fn should_revert(&self) -> bool
Flag whether the client should revert after execution.
sourcepub fn into_inner(self) -> (ProgramState, Tx, Vec<Receipt>)
pub fn into_inner(self) -> (ProgramState, Tx, Vec<Receipt>)
Convert this instance into its internal attributes.
Trait Implementations§
source§impl<Tx: Clone> Clone for StateTransition<Tx>
impl<Tx: Clone> Clone for StateTransition<Tx>
source§fn clone(&self) -> StateTransition<Tx>
fn clone(&self) -> StateTransition<Tx>
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<Tx: Debug> Debug for StateTransition<Tx>
impl<Tx: Debug> Debug for StateTransition<Tx>
source§impl<'a, Tx> From<&'a StateTransition<Tx>> for StateTransitionRef<'a, Tx>
impl<'a, Tx> From<&'a StateTransition<Tx>> for StateTransitionRef<'a, Tx>
source§fn from(t: &'a StateTransition<Tx>) -> StateTransitionRef<'a, Tx>
fn from(t: &'a StateTransition<Tx>) -> StateTransitionRef<'a, Tx>
Converts to this type from the input type.
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 StateTransition<Tx>
impl<'a, Tx: Clone> From<StateTransitionRef<'a, Tx>> for StateTransition<Tx>
source§fn from(t: StateTransitionRef<'_, Tx>) -> StateTransition<Tx>
fn from(t: StateTransitionRef<'_, Tx>) -> StateTransition<Tx>
Converts to this type from the input type.