Struct fuel_vm::transactor::Transactor
source ·
[−]pub struct Transactor<'a, S> { /* private fields */ }
Expand description
State machine to execute transactions and provide runtime entities on demand.
Builder pattern for Interpreter
. Follows the recommended Non-consuming builder
.
Based on https://doc.rust-lang.org/1.5.0/style/ownership/builders.html#non-consuming-builders-preferred
Implementations
State transition representation after the execution of a transaction.
Will be None
if the last transaction resulted in a VM panic, or if no
transaction was executed.
Receipts after the execution of a transaction.
Follows the same criteria as Self::state_transition
to return
None
.
Interpreter error representation after the execution of a transaction.
Follows the same criteria as Self::state_transition
to return
None
.
Will be None
if the last transaction resulted successful, or if no
transaction was executed.
Generate a backtrace when at least one receipt of ScriptResult
was
found.
Returns true if last transaction execution was successful
Result representation of the last executed transaction.
Will return None
if no transaction was executed.
Convert this transaction into the underlying VM instance.
This isn’t a two-way operation since if you convert this instance into the raw VM, then you lose the transactor state.
Execute a transaction, and return the new state of the transactor
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.