pub enum JournalMismatchRetryBehavior {
Pause,
FailTerminally,
FollowRetryPolicy,
}Expand description
Defines how the state machine reacts to journal mismatch (non-determinism) errors,
that is errors carrying the JOURNAL_MISMATCH status code.
Variants§
Pause
On journal mismatch error, pause the invocation instead of retrying.
Requires service protocol V7 or newer; on older versions the error follows
the retry policy, as with JournalMismatchRetryBehavior::FollowRetryPolicy.
FailTerminally
On journal mismatch error, fail the invocation terminally instead of retrying.
Requires service protocol V7 or newer; on older versions the error follows
the retry policy, as with JournalMismatchRetryBehavior::FollowRetryPolicy.
FollowRetryPolicy
Just follow the retry policy for non journal mismatch.
Trait Implementations§
Source§impl Debug for JournalMismatchRetryBehavior
impl Debug for JournalMismatchRetryBehavior
Source§impl Default for JournalMismatchRetryBehavior
impl Default for JournalMismatchRetryBehavior
Source§fn default() -> JournalMismatchRetryBehavior
fn default() -> JournalMismatchRetryBehavior
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for JournalMismatchRetryBehavior
impl RefUnwindSafe for JournalMismatchRetryBehavior
impl Send for JournalMismatchRetryBehavior
impl Sync for JournalMismatchRetryBehavior
impl Unpin for JournalMismatchRetryBehavior
impl UnsafeUnpin for JournalMismatchRetryBehavior
impl UnwindSafe for JournalMismatchRetryBehavior
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> 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