pub enum WorkerStep {
Idle,
Completed {
receipt: String,
attempt: u32,
},
Retried {
receipt: String,
attempt: u32,
delay: Duration,
},
DeadLettered {
receipt: String,
attempt: u32,
reason: JobError,
},
}Expand description
Outcome of one Worker::step cycle.
Variants§
Idle
No delivery was visible on the topic.
Completed
The handler succeeded and the delivery was acknowledged.
Retried
The handler failed and the delivery was scheduled for another attempt.
Fields
DeadLettered
The delivery reached the dead-letter destination.
Trait Implementations§
Source§impl Clone for WorkerStep
impl Clone for WorkerStep
Source§fn clone(&self) -> WorkerStep
fn clone(&self) -> WorkerStep
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 WorkerStep
impl Debug for WorkerStep
impl Eq for WorkerStep
Source§impl PartialEq for WorkerStep
impl PartialEq for WorkerStep
impl StructuralPartialEq for WorkerStep
Auto Trait Implementations§
impl Freeze for WorkerStep
impl RefUnwindSafe for WorkerStep
impl Send for WorkerStep
impl Sync for WorkerStep
impl Unpin for WorkerStep
impl UnsafeUnpin for WorkerStep
impl UnwindSafe for WorkerStep
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