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.
source§impl<Tx: PartialEq> PartialEq<StateTransition<Tx>> for StateTransition<Tx>
impl<Tx: PartialEq> PartialEq<StateTransition<Tx>> for StateTransition<Tx>
source§fn eq(&self, other: &StateTransition<Tx>) -> bool
fn eq(&self, other: &StateTransition<Tx>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<Tx: Eq> Eq for StateTransition<Tx>
impl<Tx> StructuralEq for StateTransition<Tx>
impl<Tx> StructuralPartialEq for StateTransition<Tx>
Auto Trait Implementations§
impl<Tx> RefUnwindSafe for StateTransition<Tx>where Tx: RefUnwindSafe,
impl<Tx> Send for StateTransition<Tx>where Tx: Send,
impl<Tx> Sync for StateTransition<Tx>where Tx: Sync,
impl<Tx> Unpin for StateTransition<Tx>where Tx: Unpin,
impl<Tx> UnwindSafe for StateTransition<Tx>where Tx: UnwindSafe,
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