pub struct QueueOptions<'a> { /* private fields */ }Expand description
Options used to configure a Queue instance.
Implementations§
Source§impl<'a> QueueOptions<'a>
impl<'a> QueueOptions<'a>
Sourcepub fn job_recovery_behavior(self, behavior: JobRecoveryBehavior) -> Self
pub fn job_recovery_behavior(self, behavior: JobRecoveryBehavior) -> Self
Configure how the Queue treats jobs that were already marked as runnning when the it starts. This usually indicates jobs that were left unfinished due to an unexpected process restart.
Auto Trait Implementations§
impl<'a> Freeze for QueueOptions<'a>
impl<'a> RefUnwindSafe for QueueOptions<'a>
impl<'a> Send for QueueOptions<'a>
impl<'a> Sync for QueueOptions<'a>
impl<'a> Unpin for QueueOptions<'a>
impl<'a> UnwindSafe for QueueOptions<'a>
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