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;
fn produce_token_swap_request_job<'life0, 'async_trait>(
&'life0 self,
swap_request_job: TokenSwapRequest,
scheduled_on: Option<i64>,
) -> Pin<Box<dyn Future<Output = Result<(), JobProducerError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn produce_relayer_health_check_job<'life0, 'async_trait>(
&'life0 self,
relayer_health_check_job: RelayerHealthCheck,
scheduled_on: Option<i64>,
) -> Pin<Box<dyn Future<Output = Result<(), JobProducerError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
// Provided methods
fn get_queue_backend(&self) -> Option<Arc<QueueBackendStorage>> { ... }
fn backend_type(&self) -> QueueBackendType { ... }
}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,
fn produce_token_swap_request_job<'life0, 'async_trait>(
&'life0 self,
swap_request_job: TokenSwapRequest,
scheduled_on: Option<i64>,
) -> Pin<Box<dyn Future<Output = Result<(), JobProducerError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn produce_relayer_health_check_job<'life0, 'async_trait>(
&'life0 self,
relayer_health_check_job: RelayerHealthCheck,
scheduled_on: Option<i64>,
) -> Pin<Box<dyn Future<Output = Result<(), JobProducerError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Provided Methods§
Sourcefn get_queue_backend(&self) -> Option<Arc<QueueBackendStorage>>
fn get_queue_backend(&self) -> Option<Arc<QueueBackendStorage>>
Returns active queue backend storage when available.
Sourcefn backend_type(&self) -> QueueBackendType
fn backend_type(&self) -> QueueBackendType
Returns active queue backend type.