Trait apalis_core::builder::WorkerFactory
source · Expand description
Helper trait for building new Workers from WorkerBuilder
Required Associated Types§
Required Methods§
Implementors§
source§impl<T, S, M, Ser, Fut> WorkerFactory<Ser> for WorkerBuilder<T, S, M>where
S: Storage<Output = T> + Unpin + Send + 'static + Sync,
T: Job + Send + 'static,
M: Layer<Ser>,
<M as Layer<Ser>>::Service: Service<JobRequest<T>, Response = JobResult, Error = JobError, Future = Fut> + Unpin + Send + 'static,
Fut: Future<Output = Result<JobResult, JobError>> + Send,
Available on crate feature storage only.
impl<T, S, M, Ser, Fut> WorkerFactory<Ser> for WorkerBuilder<T, S, M>where
S: Storage<Output = T> + Unpin + Send + 'static + Sync,
T: Job + Send + 'static,
M: Layer<Ser>,
<M as Layer<Ser>>::Service: Service<JobRequest<T>, Response = JobResult, Error = JobError, Future = Fut> + Unpin + Send + 'static,
Fut: Future<Output = Result<JobResult, JobError>> + Send,
Available on crate feature
storage only.