Struct fuel_vm::state::StateTransition
source · [−]pub struct StateTransition { /* private fields */ }
Expand description
Representation of the result of a transaction execution.
Implementations
sourceimpl StateTransition
impl StateTransition
sourcepub const fn new(
state: ProgramState,
tx: Transaction,
receipts: Vec<Receipt>
) -> Self
pub const fn new(
state: ProgramState,
tx: Transaction,
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 const fn tx(&self) -> &Transaction
pub const fn tx(&self) -> &Transaction
Resulting mutated transaction after VM execution.
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, Transaction, Vec<Receipt>)
pub fn into_inner(self) -> (ProgramState, Transaction, Vec<Receipt>)
Convert this instance into its internal attributes.
Trait Implementations
sourceimpl Clone for StateTransition
impl Clone for StateTransition
sourcefn clone(&self) -> StateTransition
fn clone(&self) -> StateTransition
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for StateTransition
impl Debug for StateTransition
sourceimpl<'a> From<&'a StateTransition> for StateTransitionRef<'a>
impl<'a> From<&'a StateTransition> for StateTransitionRef<'a>
sourcefn from(t: &'a StateTransition) -> StateTransitionRef<'a>
fn from(t: &'a StateTransition) -> StateTransitionRef<'a>
Converts to this type from the input type.
sourceimpl From<StateTransition> for ProgramState
impl From<StateTransition> for ProgramState
sourcefn from(t: StateTransition) -> ProgramState
fn from(t: StateTransition) -> ProgramState
Converts to this type from the input type.
sourceimpl PartialEq<StateTransition> for StateTransition
impl PartialEq<StateTransition> for StateTransition
sourcefn eq(&self, other: &StateTransition) -> bool
fn eq(&self, other: &StateTransition) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &StateTransition) -> bool
fn ne(&self, other: &StateTransition) -> bool
This method tests for !=
.
impl Eq for StateTransition
impl StructuralEq for StateTransition
impl StructuralPartialEq for StateTransition
Auto Trait Implementations
impl RefUnwindSafe for StateTransition
impl Send for StateTransition
impl Sync for StateTransition
impl Unpin for StateTransition
impl UnwindSafe for StateTransition
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more