Struct fuel_vm::state::StateTransition
source · [−]pub struct StateTransition<Tx> { /* private fields */ }
Expand description
Representation of the result of a transaction execution.
Implementations
sourceimpl<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
sourceimpl<Tx: Clone> Clone for StateTransition<Tx>
impl<Tx: Clone> Clone for StateTransition<Tx>
sourcefn clone(&self) -> StateTransition<Tx>
fn clone(&self) -> StateTransition<Tx>
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 moresourceimpl<Tx: Debug> Debug for StateTransition<Tx>
impl<Tx: Debug> Debug for StateTransition<Tx>
sourceimpl<'a, Tx> From<&'a StateTransition<Tx>> for StateTransitionRef<'a, Tx>
impl<'a, Tx> From<&'a StateTransition<Tx>> for StateTransitionRef<'a, Tx>
sourcefn 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.
sourceimpl<Tx> From<StateTransition<Tx>> for ProgramState
impl<Tx> From<StateTransition<Tx>> for ProgramState
sourcefn from(t: StateTransition<Tx>) -> ProgramState
fn from(t: StateTransition<Tx>) -> ProgramState
Converts to this type from the input type.
sourceimpl<'a, Tx: Clone> Into<StateTransition<Tx>> for StateTransitionRef<'a, Tx>
impl<'a, Tx: Clone> Into<StateTransition<Tx>> for StateTransitionRef<'a, Tx>
sourcefn into(self) -> StateTransition<Tx>
fn into(self) -> StateTransition<Tx>
Converts this type into the (usually inferred) input type.
sourceimpl<Tx: PartialEq> PartialEq<StateTransition<Tx>> for StateTransition<Tx>
impl<Tx: PartialEq> PartialEq<StateTransition<Tx>> for StateTransition<Tx>
sourcefn eq(&self, other: &StateTransition<Tx>) -> bool
fn eq(&self, other: &StateTransition<Tx>) -> bool
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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