pub enum RunInstanceError {
InvalidTransition {
run_id: RunId,
from: RunState,
to: RunState,
},
AttemptInProgress {
run_id: RunId,
active_attempt_id: AttemptId,
},
AttemptStartRequiresRunning {
run_id: RunId,
current_state: RunState,
},
AttemptFinishRequiresRunning {
run_id: RunId,
current_state: RunState,
},
AttemptAlreadyActive {
run_id: RunId,
active_attempt_id: AttemptId,
},
AttemptOwnershipMismatch {
run_id: RunId,
expected_attempt_id: AttemptId,
actual_attempt_id: AttemptId,
},
NoActiveAttempt {
run_id: RunId,
},
AttemptCountOverflow {
run_id: RunId,
},
PriorityMutationRequiresReady {
run_id: RunId,
current_state: RunState,
},
}Expand description
Typed lifecycle and mutation errors for RunInstance.
Variants§
InvalidTransition
The requested transition is not allowed by the canonical transition table.
Fields
AttemptInProgress
Attempt-related transition blocked because an attempt is still active.
Fields
AttemptStartRequiresRunning
Attempt start was requested while not in the Running state.
Fields
AttemptFinishRequiresRunning
Attempt finish was requested while not in the Running state.
Fields
AttemptAlreadyActive
Attempt start was requested but a different active attempt already exists.
Fields
AttemptOwnershipMismatch
Attempt finish did not match the currently active attempt.
Fields
NoActiveAttempt
Attempt finish was requested without any active attempt.
AttemptCountOverflow
Attempt counter overflowed u32.
PriorityMutationRequiresReady
Priority snapshots can only be mutated while the run is in Ready.
Trait Implementations§
Source§impl Clone for RunInstanceError
impl Clone for RunInstanceError
Source§fn clone(&self) -> RunInstanceError
fn clone(&self) -> RunInstanceError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RunInstanceError
impl Debug for RunInstanceError
Source§impl Display for RunInstanceError
impl Display for RunInstanceError
Source§impl Error for RunInstanceError
impl Error for RunInstanceError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl PartialEq for RunInstanceError
impl PartialEq for RunInstanceError
impl Copy for RunInstanceError
impl Eq for RunInstanceError
impl StructuralPartialEq for RunInstanceError
Auto Trait Implementations§
impl Freeze for RunInstanceError
impl RefUnwindSafe for RunInstanceError
impl Send for RunInstanceError
impl Sync for RunInstanceError
impl Unpin for RunInstanceError
impl UnsafeUnpin for RunInstanceError
impl UnwindSafe for RunInstanceError
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