#[non_exhaustive]pub enum RunLifecycleError {
PendingRevisionNotZero {
actual: RunRevision,
},
AdvancedStateAtZeroRevision {
status: RunStatus,
},
StateBeforeAdmission {
admitted_at: Timestamp,
changed_at: Timestamp,
},
WaitingChangeBeforeRegistration {
registered_at: Timestamp,
changed_at: Timestamp,
},
ResultProvenanceMismatch {
expected: Box<AgentResultProvenance>,
actual: Box<AgentResultProvenance>,
},
}Expand description
Intrinsically invalid serialized lifecycle snapshot.
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.
PendingRevisionNotZero
Only the initial pending snapshot may use revision zero.
Fields
§
actual: RunRevisionRejected pending revision.
AdvancedStateAtZeroRevision
An advanced state claimed to have applied no transition.
StateBeforeAdmission
State time preceded durable admission.
Fields
WaitingChangeBeforeRegistration
A partially resolved wait claimed a change before registration.
Fields
ResultProvenanceMismatch
A success snapshot substituted trusted run identity.
Fields
§
expected: Box<AgentResultProvenance>Trusted admission provenance.
§
actual: Box<AgentResultProvenance>Rejected result provenance.
Trait Implementations§
Source§impl Clone for RunLifecycleError
impl Clone for RunLifecycleError
Source§impl Debug for RunLifecycleError
impl Debug for RunLifecycleError
Source§impl Display for RunLifecycleError
impl Display for RunLifecycleError
impl Eq for RunLifecycleError
Source§impl Error for RunLifecycleError
impl Error for RunLifecycleError
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 RunLifecycleError
impl PartialEq for RunLifecycleError
impl StructuralPartialEq for RunLifecycleError
Auto Trait Implementations§
impl Forget for RunLifecycleError
impl Freeze for RunLifecycleError
impl Move for RunLifecycleError
impl RefUnwindSafe for RunLifecycleError
impl Send for RunLifecycleError
impl Sync for RunLifecycleError
impl Unpin for RunLifecycleError
impl UnsafeUnpin for RunLifecycleError
impl UnwindSafe for RunLifecycleError
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