Enum nakadion::worker::WorkerSettings
[−]
[src]
pub enum WorkerSettings { Sequential(SequentialWorkerSettings), Concurrent(ConcurrentWorkerSettings), }
Settings for the worker.
Will determine whether the worker is sequential or concurrent.
Variants
Sequential(SequentialWorkerSettings)
Concurrent(ConcurrentWorkerSettings)
Methods
impl WorkerSettings
[src]
fn from_env() -> Result<Self, String>
Creates a configuration from environment variables.
The environment variable NAKADION_USE_CONCURRENT_WORKER
will determine
whether the worker will be sequential or concurrent.
The default if the variable can not be found is false
.
You must provide all the necessary environment variables for settings you want to create.