#[non_exhaustive]pub enum RunTransitionError {
InvalidTransition {
status: RunStatus,
transition: RunTransitionKind,
},
ClockRegression {
previous: Timestamp,
actual: Timestamp,
},
InterruptNotOutstanding {
interrupt_id: InterruptId,
},
InterruptExpired {
interrupt_id: InterruptId,
expires_at: Timestamp,
resolved_at: Timestamp,
},
TimerNotOutstanding {
timer_id: TimerId,
},
TimerNotDue {
timer_id: TimerId,
due_at: Timestamp,
fired_at: Timestamp,
},
ResultProvenanceMismatch {
expected: Box<AgentResultProvenance>,
actual: Box<AgentResultProvenance>,
},
Cancellation {
source: RunCancellationError,
},
RevisionOverflow,
}Expand description
Rejected pure lifecycle transition.
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.
InvalidTransition
The current state has no edge for this transition.
Fields
§
transition: RunTransitionKindRejected transition kind.
ClockRegression
A transition clock observation moved backward.
Fields
InterruptNotOutstanding
An interrupt resolution named no currently outstanding marker.
Fields
§
interrupt_id: InterruptIdStale, duplicate, or unrelated interrupt identifier.
InterruptExpired
An interrupt resolution arrived at or after exclusive expiry.
Fields
§
interrupt_id: InterruptIdExact expired interrupt identifier.
TimerNotOutstanding
A firing named no currently outstanding timer.
TimerNotDue
A timer firing preceded its inclusive due instant.
Fields
ResultProvenanceMismatch
A successful result substituted trusted run identity.
Fields
§
expected: Box<AgentResultProvenance>Trusted admission provenance.
§
actual: Box<AgentResultProvenance>Rejected result provenance.
Cancellation
Cancellation acknowledgement was intrinsically invalid.
Fields
§
source: RunCancellationErrorUnderlying cancellation timing failure.
RevisionOverflow
No next optimistic revision can be represented.
Trait Implementations§
Source§impl Clone for RunTransitionError
impl Clone for RunTransitionError
Source§impl Debug for RunTransitionError
impl Debug for RunTransitionError
Source§impl Display for RunTransitionError
impl Display for RunTransitionError
impl Eq for RunTransitionError
Source§impl Error for RunTransitionError
impl Error for RunTransitionError
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 RunTransitionError
impl PartialEq for RunTransitionError
impl StructuralPartialEq for RunTransitionError
Auto Trait Implementations§
impl Forget for RunTransitionError
impl Freeze for RunTransitionError
impl Move for RunTransitionError
impl RefUnwindSafe for RunTransitionError
impl Send for RunTransitionError
impl Sync for RunTransitionError
impl Unpin for RunTransitionError
impl UnsafeUnpin for RunTransitionError
impl UnwindSafe for RunTransitionError
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