pub struct EnqueueOptions {
pub delay: Duration,
pub key: Option<String>,
}Expand description
Optional settings for JobQueue::enqueue_with
Fields§
§delay: DurationDo not run before this much time has passed
key: Option<String>While a job with this key is waiting or running, enqueueing it again returns the existing job instead of adding a duplicate
Trait Implementations§
Source§impl Clone for EnqueueOptions
impl Clone for EnqueueOptions
Source§impl Debug for EnqueueOptions
impl Debug for EnqueueOptions
Auto Trait Implementations§
impl Freeze for EnqueueOptions
impl RefUnwindSafe for EnqueueOptions
impl Send for EnqueueOptions
impl Sync for EnqueueOptions
impl Unpin for EnqueueOptions
impl UnsafeUnpin for EnqueueOptions
impl UnwindSafe for EnqueueOptions
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