pub struct EnqueueOpts { /* private fields */ }Implementations§
Source§impl EnqueueOpts
impl EnqueueOpts
pub fn queue<S: Into<String>>(self, queue: S) -> Self
pub fn retry<RO>(self, retry: RO) -> Self
pub fn unique_for(self, unique_for: Duration) -> Self
pub fn retry_queue(self, retry_queue: String) -> Self
pub fn create_job(&self, class: String, args: impl Serialize) -> Result<Job>
pub async fn perform_async( self, redis: &RedisPool, class: String, args: impl Serialize, ) -> Result<()>
pub async fn perform_in( &self, redis: &RedisPool, class: String, duration: Duration, args: impl Serialize, ) -> Result<()>
Trait Implementations§
Source§impl<Args, W: Worker<Args>> From<&WorkerOpts<Args, W>> for EnqueueOpts
impl<Args, W: Worker<Args>> From<&WorkerOpts<Args, W>> for EnqueueOpts
Source§fn from(opts: &WorkerOpts<Args, W>) -> Self
fn from(opts: &WorkerOpts<Args, W>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for EnqueueOpts
impl RefUnwindSafe for EnqueueOpts
impl Send for EnqueueOpts
impl Sync for EnqueueOpts
impl Unpin for EnqueueOpts
impl UnsafeUnpin for EnqueueOpts
impl UnwindSafe for EnqueueOpts
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