pub trait TransactionPool {
// Required method
fn submit_transaction(&mut self, extrinsic: Vec<u8>) -> Result<(), ()>;
}Expand description
Abstraction over transaction pool.
This trait is currently used within the ExternalitiesExtension
to provide offchain calls with access to the transaction pool without
tight coupling with any pool implementation.
Required Methods§
Trait Implementations§
Source§impl From<Box<dyn TransactionPool + Send>> for TransactionPoolExt
impl From<Box<dyn TransactionPool + Send>> for TransactionPoolExt
Source§fn from(inner: Box<dyn TransactionPool + Send>) -> TransactionPoolExt
fn from(inner: Box<dyn TransactionPool + Send>) -> TransactionPoolExt
Converts to this type from the input type.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".