Trait mq::Producer
source · pub trait Producer: Send + Sync {
// Required methods
fn publish<'life0, 'async_trait>(
&'life0 self,
job: Job
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn exists<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
queue: &'life1 str,
kind: &'life2 str,
id: &'life3 str
) -> Pin<Box<dyn Future<Output = Result<bool, Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait;
fn cancel_by_id<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
queue: &'life1 str,
kind: &'life2 str,
id: &'life3 str
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait;
fn cancel_by_unique_key<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
queue: &'life1 str,
kind: &'life2 str,
key: &'life3 str
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait;
}