Trait apalis_core::mq::WithMq
source · pub trait WithMq<NS, Mq: MessageQueue<Self::Job>>: Sized {
type Job;
type Stream;
// Required method
fn with_mq(self, mq: Mq) -> WorkerBuilder<Self::Job, Self::Stream, NS>;
}Available on crate feature
mq only.Expand description
A helper trait to help build a WorkerBuilder that consumes a MessageQueue
Required Associated Types§
sourcetype Stream
type Stream
The MessageQueue to produce jobs
Required Methods§
sourcefn with_mq(self, mq: Mq) -> WorkerBuilder<Self::Job, Self::Stream, NS>
fn with_mq(self, mq: Mq) -> WorkerBuilder<Self::Job, Self::Stream, NS>
The builder method to produce a default WorkerBuilder that will consume jobs
Object Safety§
This trait is not object safe.