Struct fuel_vm::state::StateTransitionRef
source · pub struct StateTransitionRef<'a, Tx> { /* private fields */ }
Expand description
Zero-copy Representation of the result of a transaction execution bound to the lifetime of the VM.
Implementations§
source§impl<'a, Tx> StateTransitionRef<'a, Tx>
impl<'a, Tx> StateTransitionRef<'a, Tx>
sourcepub const fn new(state: ProgramState, tx: &'a Tx, receipts: &'a [Receipt]) -> Self
pub const fn new(state: ProgramState, tx: &'a Tx, receipts: &'a [Receipt]) -> Self
Create a new by reference state transition representation.
sourcepub const fn state(&self) -> &ProgramState
pub const fn state(&self) -> &ProgramState
Program state representation.
sourcepub const fn receipts(&self) -> &[Receipt]
pub const fn receipts(&self) -> &[Receipt]
Transaction receipts representing the state transition.
sourcepub fn should_revert(&self) -> bool
pub fn should_revert(&self) -> bool
Flag whether the client should revert after execution.
Trait Implementations§
source§impl<'a, Tx: Clone> Clone for StateTransitionRef<'a, Tx>
impl<'a, Tx: Clone> Clone for StateTransitionRef<'a, Tx>
source§fn clone(&self) -> StateTransitionRef<'a, Tx>
fn clone(&self) -> StateTransitionRef<'a, 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<'a, Tx: Debug> Debug for StateTransitionRef<'a, Tx>
impl<'a, Tx: Debug> Debug for StateTransitionRef<'a, 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<'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<'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.