openzeppelin_relayer::jobs

Trait JobProducerTrait

Source
pub trait JobProducerTrait: Send + Sync {
    // Required methods
    fn produce_transaction_request_job<'life0, 'async_trait>(
        &'life0 self,
        transaction_process_job: TransactionRequest,
        scheduled_on: Option<i64>,
    ) -> Pin<Box<dyn Future<Output = Result<(), JobProducerError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn produce_submit_transaction_job<'life0, 'async_trait>(
        &'life0 self,
        transaction_submit_job: TransactionSend,
        scheduled_on: Option<i64>,
    ) -> Pin<Box<dyn Future<Output = Result<(), JobProducerError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn produce_check_transaction_status_job<'life0, 'async_trait>(
        &'life0 self,
        transaction_status_check_job: TransactionStatusCheck,
        scheduled_on: Option<i64>,
    ) -> Pin<Box<dyn Future<Output = Result<(), JobProducerError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn produce_send_notification_job<'life0, 'async_trait>(
        &'life0 self,
        notification_send_job: NotificationSend,
        scheduled_on: Option<i64>,
    ) -> Pin<Box<dyn Future<Output = Result<(), JobProducerError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn produce_transaction_request_job<'life0, 'async_trait>( &'life0 self, transaction_process_job: TransactionRequest, scheduled_on: Option<i64>, ) -> Pin<Box<dyn Future<Output = Result<(), JobProducerError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn produce_submit_transaction_job<'life0, 'async_trait>( &'life0 self, transaction_submit_job: TransactionSend, scheduled_on: Option<i64>, ) -> Pin<Box<dyn Future<Output = Result<(), JobProducerError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn produce_check_transaction_status_job<'life0, 'async_trait>( &'life0 self, transaction_status_check_job: TransactionStatusCheck, scheduled_on: Option<i64>, ) -> Pin<Box<dyn Future<Output = Result<(), JobProducerError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn produce_send_notification_job<'life0, 'async_trait>( &'life0 self, notification_send_job: NotificationSend, scheduled_on: Option<i64>, ) -> Pin<Box<dyn Future<Output = Result<(), JobProducerError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§