pub trait MakeQueue: Send + Sync {
type InputQueue: InputQueue<Err = Self::Err>;
type OutputQueue: OutputQueue<Err = Self::Err>;
type Err: Error + Send + Sync;
// Required methods
fn input_queue<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str,
url: Url,
) -> Pin<Box<dyn Future<Output = Result<Self::InputQueue, Self::Err>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn output_queue<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str,
url: Url,
) -> Pin<Box<dyn Future<Output = Result<Self::OutputQueue, Self::Err>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}
Expand description
The queue factory trait that takes care of creating queues
Required Associated Types§
Sourcetype InputQueue: InputQueue<Err = Self::Err>
type InputQueue: InputQueue<Err = Self::Err>
The type of InputQueue
returned by this factory
Sourcetype OutputQueue: OutputQueue<Err = Self::Err>
type OutputQueue: OutputQueue<Err = Self::Err>
The type of OutputQueue
returned by this factory
Required Methods§
Sourcefn input_queue<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str,
url: Url,
) -> Pin<Box<dyn Future<Output = Result<Self::InputQueue, Self::Err>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn input_queue<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str,
url: Url,
) -> Pin<Box<dyn Future<Output = Result<Self::InputQueue, Self::Err>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Create a new job queue using this factory
Sourcefn output_queue<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str,
url: Url,
) -> Pin<Box<dyn Future<Output = Result<Self::OutputQueue, Self::Err>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn output_queue<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str,
url: Url,
) -> Pin<Box<dyn Future<Output = Result<Self::OutputQueue, Self::Err>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Create a new OutputQueue
with this MakeQueue