pub struct QueueConfigBuilder { /* private fields */ }Implementations§
Source§impl QueueConfigBuilder
 
impl QueueConfigBuilder
pub fn new() -> Self
pub fn max_workers(self, value: usize) -> Self
pub fn default_timeout(self, value: Duration) -> Self
pub fn poll_interval(self, value: Duration) -> Self
pub fn max_queue_size(self, value: usize) -> Self
pub fn enable_persistence(self, value: bool) -> Self
pub fn cleanup_interval(self, value: Duration) -> Self
pub fn completed_job_ttl(self, value: Duration) -> Self
pub fn failed_job_ttl(self, value: Duration) -> Self
pub fn build(self) -> Result<QueueConfig, BuildError>
pub fn build_with_defaults(self) -> Result<QueueConfig, BuildError>
Source§impl QueueConfigBuilder
 
impl QueueConfigBuilder
Sourcepub fn development() -> Self
 
pub fn development() -> Self
Create a development configuration with fast polling and small timeouts
Sourcepub fn production() -> Self
 
pub fn production() -> Self
Create a production configuration with conservative defaults
Auto Trait Implementations§
impl Freeze for QueueConfigBuilder
impl RefUnwindSafe for QueueConfigBuilder
impl Send for QueueConfigBuilder
impl Sync for QueueConfigBuilder
impl Unpin for QueueConfigBuilder
impl UnwindSafe for QueueConfigBuilder
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