Struct fuel_core::service::adapters::ExecutorAdapter
source · pub struct ExecutorAdapter {
pub relayer: MaybeRelayerAdapter,
pub config: Arc<Config>,
}
Fields§
§relayer: MaybeRelayerAdapter
§config: Arc<Config>
Trait Implementations§
source§impl Clone for ExecutorAdapter
impl Clone for ExecutorAdapter
source§fn clone(&self) -> ExecutorAdapter
fn clone(&self) -> ExecutorAdapter
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 Executor for ExecutorAdapter
impl Executor for ExecutorAdapter
source§fn execute_without_commit(
&self,
block: Block
) -> ExecutorResult<UncommittedExecutionResult<StorageTransaction<Self::Database>>>
fn execute_without_commit( &self, block: Block ) -> ExecutorResult<UncommittedExecutionResult<StorageTransaction<Self::Database>>>
Executes the block and returns the result of execution with uncommitted database
transaction.
source§impl Executor for ExecutorAdapter
impl Executor for ExecutorAdapter
§type TxSource = TransactionsSource
type TxSource = TransactionsSource
The source of transaction used by the executor.
source§fn execute_without_commit(
&self,
component: Components<Self::TxSource>
) -> ExecutorResult<UncommittedResult<StorageTransaction<Database>>>
fn execute_without_commit( &self, component: Components<Self::TxSource> ) -> ExecutorResult<UncommittedResult<StorageTransaction<Database>>>
Executes the block and returns the result of execution with uncommitted database
transaction.
source§fn dry_run(
&self,
block: Components<Transaction>,
utxo_validation: Option<bool>
) -> ExecutorResult<Vec<Vec<Receipt>>>
fn dry_run( &self, block: Components<Transaction>, utxo_validation: Option<bool> ) -> ExecutorResult<Vec<Vec<Receipt>>>
Executes the block without committing it to the database. During execution collects the
receipts to return them. The
utxo_validation
field can be used to disable the validation
of utxos during execution.Auto Trait Implementations§
impl !RefUnwindSafe for ExecutorAdapter
impl Send for ExecutorAdapter
impl Sync for ExecutorAdapter
impl Unpin for ExecutorAdapter
impl !UnwindSafe for ExecutorAdapter
Blanket Implementations§
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