fuel_core_producer::ports

Trait TxPool

Source
pub trait TxPool: Send + Sync {
    type TxSource;

    // Required method
    async fn get_source(
        &self,
        gas_price: u64,
        block_height: BlockHeight,
    ) -> Result<Self::TxSource>;
}

Required Associated Types§

Source

type TxSource

The source of the transactions used by the executor.

Required Methods§

Source

async fn get_source( &self, gas_price: u64, block_height: BlockHeight, ) -> Result<Self::TxSource>

Returns the source of includable transactions.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§