pub enum Processed {
Done,
RetryAt(OffsetDateTime),
NextAt(OffsetDateTime),
}Expand description
What the handler made of one record.
Variants§
Done
Delivered: remove the record.
RetryAt(OffsetDateTime)
Failed: reschedule with attempts incremented — the caller applies
its own backoff through the timestamp. Enough failures and the
bounded-retry posture of the module applies.
NextAt(OffsetDateTime)
Not due yet — recurring work: reschedule to at without
counting an attempt. This is the per-item cursor: one row per thing
to poll, moved to its next poll time.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Processed
impl RefUnwindSafe for Processed
impl Send for Processed
impl Sync for Processed
impl Unpin for Processed
impl UnsafeUnpin for Processed
impl UnwindSafe for Processed
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