Skip to main content

SubmitApi

Trait SubmitApi 

Source
pub trait SubmitApi {
    type Transaction: DeserializeOwned + Send + Sync + 'static;
    type TxHash: Serialize + Send + Sync + 'static;

    // Required method
    fn submit<'life0, 'async_trait>(
        &'life0 self,
        tx: Self::Transaction,
    ) -> Pin<Box<dyn Future<Output = Result<Self::TxHash>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Associated Types§

Required Methods§

Source

fn submit<'life0, 'async_trait>( &'life0 self, tx: Self::Transaction, ) -> Pin<Box<dyn Future<Output = Result<Self::TxHash>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§