Trait apalis_core::storage::builder::WithStorage
source · pub trait WithStorage<NS, ST: Storage<Output = Self::Job>>: Sized {
type Job;
type Stream;
// Required method
fn with_storage_config(
self,
storage: ST,
config: impl Fn(WorkerConfig) -> WorkerConfig
) -> WorkerBuilder<Self::Job, Self::Stream, NS>;
// Provided method
fn with_storage(
self,
storage: ST
) -> WorkerBuilder<Self::Job, Self::Stream, NS> { ... }
}Available on crate feature
storage only.Expand description
A helper trait to help build a WorkerBuilder that consumes a Storage
Required Associated Types§
Required Methods§
sourcefn with_storage_config(
self,
storage: ST,
config: impl Fn(WorkerConfig) -> WorkerConfig
) -> WorkerBuilder<Self::Job, Self::Stream, NS>
fn with_storage_config( self, storage: ST, config: impl Fn(WorkerConfig) -> WorkerConfig ) -> WorkerBuilder<Self::Job, Self::Stream, NS>
The builder method to produce a configured WorkerBuilder that will consume jobs
Provided Methods§
sourcefn with_storage(self, storage: ST) -> WorkerBuilder<Self::Job, Self::Stream, NS>
fn with_storage(self, storage: ST) -> 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.