#[non_exhaustive]pub enum LifecycleError {
StaleVersion {
expected: ExecutionVersion,
actual: ExecutionVersion,
},
IllegalTransition {
from: BatchStatus,
to: BatchStatus,
},
RestartRequiresNewAttempt {
from: BatchStatus,
},
NotRestartable {
status: BatchStatus,
},
AttemptIdentifierReused,
FailedTransitionMissingFailure,
InvalidTransitionTime {
source: DomainError,
},
VersionExhausted {
version: ExecutionVersion,
},
CountExhausted,
}Expand description
A typed lifecycle-policy or optimistic-concurrency failure.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
StaleVersion
The caller observed an older or otherwise different execution version.
Fields
expected: ExecutionVersionThe version supplied by the caller.
actual: ExecutionVersionThe current version of the execution record.
IllegalTransition
The requested in-place status transition is not legal.
Fields
from: BatchStatusThe current framework status.
to: BatchStatusThe requested framework status.
RestartRequiresNewAttempt
Restart is valid only by creating another execution attempt.
Fields
from: BatchStatusThe finished status from which a restart was requested.
NotRestartable
The current execution outcome cannot be restarted.
Fields
status: BatchStatusThe status that prevents restart.
AttemptIdentifierReused
A restart reused a prior job- or step-attempt identifier.
FailedTransitionMissingFailure
A transition to FAILED did not include a redacted failure summary.
InvalidTransitionTime
A supplied transition instant violated timestamp ordering.
Fields
source: DomainErrorThe facade-owned validation failure.
VersionExhausted
The optimistic version cannot be incremented.
Fields
version: ExecutionVersionThe maximum current version.
CountExhausted
A durable execution counter cannot be incremented.
Trait Implementations§
Source§impl Clone for LifecycleError
impl Clone for LifecycleError
Source§fn clone(&self) -> LifecycleError
fn clone(&self) -> LifecycleError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for LifecycleError
impl Debug for LifecycleError
Source§impl Display for LifecycleError
impl Display for LifecycleError
impl Eq for LifecycleError
Source§impl Error for LifecycleError
impl Error for LifecycleError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<LifecycleError> for RepositoryError
impl From<LifecycleError> for RepositoryError
Source§fn from(error: LifecycleError) -> RepositoryError
fn from(error: LifecycleError) -> RepositoryError
Source§impl PartialEq for LifecycleError
impl PartialEq for LifecycleError
impl StructuralPartialEq for LifecycleError
Auto Trait Implementations§
impl Freeze for LifecycleError
impl RefUnwindSafe for LifecycleError
impl Send for LifecycleError
impl Sync for LifecycleError
impl Unpin for LifecycleError
impl UnsafeUnpin for LifecycleError
impl UnwindSafe for LifecycleError
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
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
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> ⓘ
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> ⓘ
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