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§
Required Methods§
Sourceasync fn get_source(
&self,
gas_price: u64,
block_height: BlockHeight,
) -> Result<Self::TxSource>
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.