Trait SubmitDataSource

Source
pub(crate) trait SubmitDataSource<N: ConnectedNetwork<PubKey>, P: SequencerPersistence> {
    // Required method
    fn submit(&self, tx: Transaction) -> impl Send + Future<Output = Result<()>>;
}

Required Methods§

Source

fn submit(&self, tx: Transaction) -> impl Send + Future<Output = Result<()>>

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.

Implementations on Foreign Types§

Source§

impl<N: ConnectedNetwork<PubKey>, D: Send + Sync, V: Versions, P: SequencerPersistence> SubmitDataSource<N, P> for ExtensibleDataSource<D, ApiState<N, P, V>>

Source§

async fn submit(&self, tx: Transaction) -> Result<()>

Implementors§