pub struct QueueConfig {
pub initial_delay: String,
pub max_delay: String,
pub backoff_multiplier: f64,
pub max_attempts: u32,
pub worker_threads: usize,
pub batch_size: usize,
}Expand description
Queue configuration
Fields§
§initial_delay: String§max_delay: String§backoff_multiplier: f64§max_attempts: u32§worker_threads: usize§batch_size: usizeImplementations§
Source§impl QueueConfig
impl QueueConfig
Sourcepub fn initial_delay_seconds(&self) -> Result<u64>
pub fn initial_delay_seconds(&self) -> Result<u64>
Parse initial delay to seconds
Sourcepub fn max_delay_seconds(&self) -> Result<u64>
pub fn max_delay_seconds(&self) -> Result<u64>
Parse max delay to seconds
Sourcepub fn validate_backoff_multiplier(&self) -> Result<()>
pub fn validate_backoff_multiplier(&self) -> Result<()>
Validate backoff multiplier
Sourcepub fn validate_worker_threads(&self) -> Result<()>
pub fn validate_worker_threads(&self) -> Result<()>
Validate worker threads
Trait Implementations§
Source§impl Clone for QueueConfig
impl Clone for QueueConfig
Source§fn clone(&self) -> QueueConfig
fn clone(&self) -> QueueConfig
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 QueueConfig
impl Debug for QueueConfig
Source§impl<'de> Deserialize<'de> for QueueConfig
impl<'de> Deserialize<'de> for QueueConfig
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 QueueConfig
impl RefUnwindSafe for QueueConfig
impl Send for QueueConfig
impl Sync for QueueConfig
impl Unpin for QueueConfig
impl UnsafeUnpin for QueueConfig
impl UnwindSafe for QueueConfig
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