pub enum EnqueueResult {
Created(String),
Duplicate(String),
}Expand description
Result of an idempotent enqueue operation.
Returned by Enqueuer::enqueue_unique and
Enqueuer::enqueue_unique_with.
Variants§
Created(String)
A new job was inserted; contains its ID.
Duplicate(String)
A job with the same name and payload is already pending or running; contains the ID of the existing job.
Trait Implementations§
Source§impl Clone for EnqueueResult
impl Clone for EnqueueResult
Source§fn clone(&self) -> EnqueueResult
fn clone(&self) -> EnqueueResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EnqueueResult
impl Debug for EnqueueResult
Source§impl PartialEq for EnqueueResult
impl PartialEq for EnqueueResult
impl Eq for EnqueueResult
impl StructuralPartialEq for EnqueueResult
Auto Trait Implementations§
impl Freeze for EnqueueResult
impl RefUnwindSafe for EnqueueResult
impl Send for EnqueueResult
impl Sync for EnqueueResult
impl Unpin for EnqueueResult
impl UnsafeUnpin for EnqueueResult
impl UnwindSafe for EnqueueResult
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.