pub struct Enqueue<'a, J> { /* private fields */ }Expand description
Implementations§
Source§impl<J: Job> Enqueue<'_, J>
impl<J: Job> Enqueue<'_, J>
Sourcepub fn dedupe(self, key: impl Into<String>) -> Self
pub fn dedupe(self, key: impl Into<String>) -> Self
While a job of this kind with key waits for its first run, adds nothing: a burst of ten
enqueues makes one run. A claim frees the key for good, so work arriving during the run,
or while a failed run waits for its retry, queues a job of its own. Keys of different
kinds never meet.
Auto Trait Implementations§
impl<'a, J> Freeze for Enqueue<'a, J>
impl<'a, J> RefUnwindSafe for Enqueue<'a, J>where
J: RefUnwindSafe,
impl<'a, J> Send for Enqueue<'a, J>where
J: Sync,
impl<'a, J> Sync for Enqueue<'a, J>where
J: Sync,
impl<'a, J> Unpin for Enqueue<'a, J>
impl<'a, J> UnsafeUnpin for Enqueue<'a, J>
impl<'a, J> UnwindSafe for Enqueue<'a, J>where
J: RefUnwindSafe,
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