#[non_exhaustive]pub enum DecodedRequeuedEventPayload<'a> {
#[non_exhaustive] Basic {
reason: &'a str,
},
#[non_exhaustive] CompareAndRequeue {
reason: &'a str,
state_policy: JobRequeueStatePolicy,
},
#[non_exhaustive] HandlerContinuation {
reason: &'a str,
next_run_number: i32,
next_run_at: DateTime<Utc>,
delay_microseconds: i64,
},
#[non_exhaustive] Unknown {
reason: Option<&'a str>,
},
}Expand description
Decoded payload for a REQUEUED event.
The decoder recognizes both current payloads with a requeue_kind
discriminator and historical kindless payloads written before that field
was introduced.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
#[non_exhaustive]Basic
A release or legacy administrative requeue.
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
#[non_exhaustive]CompareAndRequeue
An optimistic compare-and-requeue recovery.
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
§
state_policy: JobRequeueStatePolicy#[non_exhaustive]HandlerContinuation
A successful handler continuation into a newly pending run.
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
#[non_exhaustive]Unknown
A malformed or future REQUEUED payload. The reason is retained when
it is a JSON string so generic operator surfaces can still display it.
Trait Implementations§
Source§impl<'a> Clone for DecodedRequeuedEventPayload<'a>
impl<'a> Clone for DecodedRequeuedEventPayload<'a>
Source§fn clone(&self) -> DecodedRequeuedEventPayload<'a>
fn clone(&self) -> DecodedRequeuedEventPayload<'a>
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<'a> Debug for DecodedRequeuedEventPayload<'a>
impl<'a> Debug for DecodedRequeuedEventPayload<'a>
impl<'a> Eq for DecodedRequeuedEventPayload<'a>
Source§impl<'a> PartialEq for DecodedRequeuedEventPayload<'a>
impl<'a> PartialEq for DecodedRequeuedEventPayload<'a>
impl<'a> StructuralPartialEq for DecodedRequeuedEventPayload<'a>
Auto Trait Implementations§
impl<'a> Freeze for DecodedRequeuedEventPayload<'a>
impl<'a> RefUnwindSafe for DecodedRequeuedEventPayload<'a>
impl<'a> Send for DecodedRequeuedEventPayload<'a>
impl<'a> Sync for DecodedRequeuedEventPayload<'a>
impl<'a> Unpin for DecodedRequeuedEventPayload<'a>
impl<'a> UnsafeUnpin for DecodedRequeuedEventPayload<'a>
impl<'a> UnwindSafe for DecodedRequeuedEventPayload<'a>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more