pub struct TaskClaimCandidate {
pub index: usize,
pub task_id: i64,
pub expected_processing_token: i64,
pub next_processing_token: i64,
}Expand description
Candidate task selected for compare-and-swap claiming.
Fields§
§index: usizeIndex of the task in the originally listed due-task batch.
task_id: i64Persisted task identifier.
expected_processing_token: i64Processing token that must still be present for the claim to succeed.
next_processing_token: i64Processing token to store when the claim succeeds.
Trait Implementations§
Source§impl Clone for TaskClaimCandidate
impl Clone for TaskClaimCandidate
Source§fn clone(&self) -> TaskClaimCandidate
fn clone(&self) -> TaskClaimCandidate
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TaskClaimCandidate
impl Debug for TaskClaimCandidate
Source§impl PartialEq for TaskClaimCandidate
impl PartialEq for TaskClaimCandidate
Source§fn eq(&self, other: &TaskClaimCandidate) -> bool
fn eq(&self, other: &TaskClaimCandidate) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for TaskClaimCandidate
impl Eq for TaskClaimCandidate
impl StructuralPartialEq for TaskClaimCandidate
Auto Trait Implementations§
impl Freeze for TaskClaimCandidate
impl RefUnwindSafe for TaskClaimCandidate
impl Send for TaskClaimCandidate
impl Sync for TaskClaimCandidate
impl Unpin for TaskClaimCandidate
impl UnsafeUnpin for TaskClaimCandidate
impl UnwindSafe for TaskClaimCandidate
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.