pub struct WorkerConf {
pub broker_url: String,
pub result_backend: Option<String>,
pub default_queue: String,
pub prefetch_multiplier: u32,
pub concurrency: u32,
pub task_soft_time_limit: Option<u64>,
pub task_time_limit: Option<u64>,
pub task_acks_late: bool,
pub task_reject_on_worker_lost: bool,
pub hostname: String,
}Expand description
Worker configuration
Fields§
§broker_url: StringBroker URL (sanitized)
result_backend: Option<String>Result backend URL (sanitized)
default_queue: StringDefault queue
prefetch_multiplier: u32Prefetch multiplier
concurrency: u32Concurrency
task_soft_time_limit: Option<u64>Task soft time limit
task_time_limit: Option<u64>Task time limit
task_acks_late: boolTask acks late
task_reject_on_worker_lost: boolTask reject on worker lost
hostname: StringWorker hostname
Trait Implementations§
Source§impl Clone for WorkerConf
impl Clone for WorkerConf
Source§fn clone(&self) -> WorkerConf
fn clone(&self) -> WorkerConf
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WorkerConf
impl Debug for WorkerConf
Source§impl<'de> Deserialize<'de> for WorkerConf
impl<'de> Deserialize<'de> for WorkerConf
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for WorkerConf
impl RefUnwindSafe for WorkerConf
impl Send for WorkerConf
impl Sync for WorkerConf
impl Unpin for WorkerConf
impl UnwindSafe for WorkerConf
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more