pub enum WorkQueueRecord<T> {
Show 13 variants
WorkAdmitted {
record_seq: u64,
queue_id: String,
work_id: String,
payload: T,
message_bus: WorkQueueMessageBusRef,
priority: Option<i64>,
tags: Vec<String>,
requirements: Vec<String>,
not_before_ms: Option<u64>,
deadline_ms: Option<u64>,
recorded_at_ms: u64,
},
AdmissionDeduped {
record_seq: u64,
queue_id: String,
work_id: String,
message_bus: WorkQueueMessageBusRef,
reason: String,
existing_work_id: String,
recorded_at_ms: u64,
},
WorkScheduled {
record_seq: u64,
queue_id: String,
work_id: String,
command_id: String,
schedule_id: Option<String>,
not_before_ms: u64,
deadline_ms: Option<u64>,
reason: Option<String>,
recorded_at_ms: u64,
},
WorkClaimed {
record_seq: u64,
queue_id: String,
work_id: String,
command_id: String,
lease_id: String,
attempt: u32,
worker_id: String,
claimed_at_ms: u64,
lease_expires_at_ms: u64,
},
LeaseRenewed {
record_seq: u64,
queue_id: String,
work_id: String,
command_id: String,
lease_id: String,
attempt: u32,
worker_id: String,
previous_lease_expires_at_ms: u64,
lease_expires_at_ms: u64,
renewed_at_ms: u64,
},
WorkReleased {
record_seq: u64,
queue_id: String,
work_id: String,
command_id: String,
lease_id: String,
attempt: u32,
worker_id: String,
released_at_ms: u64,
reason: Option<String>,
},
LeaseExpired {
record_seq: u64,
queue_id: String,
work_id: String,
command_id: Option<String>,
lease_id: String,
attempt: u32,
worker_id: String,
lease_expires_at_ms: u64,
expired_at_ms: u64,
},
AttemptCompleted {
record_seq: u64,
queue_id: String,
work_id: String,
command_id: String,
lease_id: String,
attempt: u32,
worker_id: String,
result: Option<String>,
recorded_at_ms: u64,
},
WorkCompleted {
record_seq: u64,
queue_id: String,
work_id: String,
command_id: String,
lease_id: String,
attempt: u32,
worker_id: String,
result: Option<String>,
recorded_at_ms: u64,
},
AttemptFailed {
record_seq: u64,
queue_id: String,
work_id: String,
command_id: String,
lease_id: String,
attempt: u32,
worker_id: String,
error: Option<String>,
retryable: Option<bool>,
recorded_at_ms: u64,
},
RetryScheduled {
record_seq: u64,
queue_id: String,
work_id: String,
command_id: String,
retry_at_ms: u64,
delay_ms: u64,
reason: Option<String>,
recorded_at_ms: u64,
},
WorkDeadLettered {
record_seq: u64,
queue_id: String,
work_id: String,
command_id: String,
reason: String,
exhausted_attempts: Option<u32>,
recorded_at_ms: u64,
},
WorkCanceled {
record_seq: u64,
queue_id: String,
work_id: String,
command_id: String,
reason: Option<String>,
canceled_at_ms: u64,
canceled_lease_id: Option<String>,
attempt: Option<u32>,
},
}Expand description
WorkQueueRecord variants.
Variants§
WorkAdmitted
WorkAdmitted variant.
Fields
§
payload: Tpayload field for payload.
§
message_bus: WorkQueueMessageBusRefmessage_bus field for message bus.
tags field for tags.
AdmissionDeduped
AdmissionDeduped variant.
Fields
§
message_bus: WorkQueueMessageBusRefmessage_bus field for message bus.
WorkScheduled
WorkScheduled variant.
Fields
WorkClaimed
WorkClaimed variant.
Fields
LeaseRenewed
LeaseRenewed variant.
Fields
WorkReleased
WorkReleased variant.
Fields
LeaseExpired
LeaseExpired variant.
Fields
AttemptCompleted
AttemptCompleted variant.
Fields
WorkCompleted
WorkCompleted variant.
Fields
AttemptFailed
AttemptFailed variant.
Fields
RetryScheduled
RetryScheduled variant.
Fields
WorkDeadLettered
WorkDeadLettered variant.
Fields
WorkCanceled
WorkCanceled variant.
Fields
Implementations§
Source§impl<T> WorkQueueRecord<T>
impl<T> WorkQueueRecord<T>
Trait Implementations§
Source§impl<T: Clone> Clone for WorkQueueRecord<T>
impl<T: Clone> Clone for WorkQueueRecord<T>
Source§fn clone(&self) -> WorkQueueRecord<T>
fn clone(&self) -> WorkQueueRecord<T>
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<T: Debug> Debug for WorkQueueRecord<T>
impl<T: Debug> Debug for WorkQueueRecord<T>
Source§impl<T: PartialEq> PartialEq for WorkQueueRecord<T>
impl<T: PartialEq> PartialEq for WorkQueueRecord<T>
impl<T> StructuralPartialEq for WorkQueueRecord<T>
Auto Trait Implementations§
impl<T> Freeze for WorkQueueRecord<T>where
T: Freeze,
impl<T> RefUnwindSafe for WorkQueueRecord<T>where
T: RefUnwindSafe,
impl<T> Send for WorkQueueRecord<T>where
T: Send,
impl<T> Sync for WorkQueueRecord<T>where
T: Sync,
impl<T> Unpin for WorkQueueRecord<T>where
T: Unpin,
impl<T> UnsafeUnpin for WorkQueueRecord<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for WorkQueueRecord<T>where
T: UnwindSafe,
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