#[non_exhaustive]pub enum StepAttemptProgress {
Unspecified,
NotStarted,
NotCompleted,
}Expand description
Reports how far attempts of a failed Step method progressed.
Read RecoveryErrorInfo::attempt_progress during recovery before deciding whether to repeat
side effects. Progress describes all attempts of that method call, rather than just the last one.
A handler may have performed side effects for both Self::NotCompleted and Self::Unspecified.
if let Some(error) = context.recovery_error() {
match error.attempt_progress() {
dex_sdk::StepAttemptProgress::NotStarted => { /* no handler side effects */ }
_ => { /* reconcile possible side effects before retrying */ }
}
}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.
Unspecified
An older Server supplied no progress; treat this like Self::NotCompleted.
NotStarted
No handler ran in any attempt of this Step method call.
NotCompleted
At least one attempt may have run, but no attempt completed.
Trait Implementations§
Source§impl Clone for StepAttemptProgress
impl Clone for StepAttemptProgress
impl Copy for StepAttemptProgress
Source§impl Debug for StepAttemptProgress
impl Debug for StepAttemptProgress
impl Eq for StepAttemptProgress
Source§impl PartialEq for StepAttemptProgress
impl PartialEq for StepAttemptProgress
impl StructuralPartialEq for StepAttemptProgress
Auto Trait Implementations§
impl Freeze for StepAttemptProgress
impl RefUnwindSafe for StepAttemptProgress
impl Send for StepAttemptProgress
impl Sync for StepAttemptProgress
impl Unpin for StepAttemptProgress
impl UnsafeUnpin for StepAttemptProgress
impl UnwindSafe for StepAttemptProgress
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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<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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request