Skip to main content

SnapshotMappingError

Enum SnapshotMappingError 

Source
pub enum SnapshotMappingError {
Show 27 variants UnsupportedSchemaVersion { expected: u32, found: u32, }, TaskCountMismatch { declared: u64, actual: u64, }, RunCountMismatch { declared: u64, actual: u64, }, DuplicateTaskId { task_id: TaskId, }, InvalidTaskCanceledAtCausality { task_id: TaskId, created_at: u64, canceled_at: u64, }, DuplicateRunId { run_id: RunId, }, RunReferencesUnknownTask { run_id: RunId, task_id: TaskId, }, InvalidRunId { run_id: RunId, }, InvalidTaskId { run_id: RunId, task_id: TaskId, }, InvalidReadyScheduleCausality { run_id: RunId, scheduled_at: u64, created_at: u64, }, InvalidAttemptLineageState { run_id: RunId, state: RunState, }, InvalidAttemptLineageCount { run_id: RunId, attempt_count: u32, }, MissingInitialRunStateHistory { run_id: RunId, }, InvalidRunStateHistoryTransition { run_id: RunId, from: RunState, to: RunState, }, InvalidAttemptHistoryCount { run_id: RunId, attempt_count: u32, history_len: usize, }, InvalidActiveAttemptHistory { run_id: RunId, }, InvalidLeasePresence { run_id: RunId, state: RunState, }, DependencyReferencesUnknownTask { task_id: TaskId, prereq_id: TaskId, }, DependencyDeclarationUnknownTask { task_id: TaskId, }, DuplicateDependencyDeclaration { task_id: TaskId, }, DuplicateBudgetAllocation { task_id: TaskId, dimension: BudgetDimension, }, BudgetReferencesUnknownTask { task_id: TaskId, }, DuplicateSubscriptionId { subscription_id: SubscriptionId, }, SubscriptionReferencesUnknownTask { subscription_id: SubscriptionId, task_id: TaskId, }, InvalidEnginePausedCausality, InvalidEngineResumedCausality, InvalidEnginePauseResumeOrdering { paused_at: u64, resumed_at: u64, },
}
Expand description

Typed mapping and validation errors for snapshot/core parity enforcement.

Variants§

§

UnsupportedSchemaVersion

Snapshot metadata schema version is unknown to this mapping boundary.

Fields

§expected: u32

Schema version expected by the current implementation.

§found: u32

Schema version found in the snapshot payload.

§

TaskCountMismatch

Snapshot metadata task count does not match payload contents.

Fields

§declared: u64

Declared task count in snapshot metadata.

§actual: u64

Actual number of task entries in snapshot payload.

§

RunCountMismatch

Snapshot metadata run count does not match payload contents.

Fields

§declared: u64

Declared run count in snapshot metadata.

§actual: u64

Actual number of run entries in snapshot payload.

§

DuplicateTaskId

Duplicate task identifier in snapshot payload.

Fields

§task_id: TaskId

Duplicate task identifier.

§

InvalidTaskCanceledAtCausality

Snapshot task has cancellation timestamp that violates causal ordering.

Fields

§task_id: TaskId

Task identifier associated with the invalid payload.

§created_at: u64

Task creation timestamp encoded in snapshot.

§canceled_at: u64

Task cancellation timestamp encoded in snapshot.

§

DuplicateRunId

Duplicate run identifier in snapshot payload.

Fields

§run_id: RunId

Duplicate run identifier.

§

RunReferencesUnknownTask

A run references a task that does not exist in the snapshot task set.

Fields

§run_id: RunId

Run identifier with the invalid reference.

§task_id: TaskId

Missing task identifier.

§

InvalidRunId

A run has a nil/invalid run identifier.

Fields

§run_id: RunId

Invalid run identifier value.

§

InvalidTaskId

A run has a nil/invalid task identifier.

Fields

§run_id: RunId

Run identifier associated with the invalid task identifier.

§task_id: TaskId

Invalid task identifier value.

§

InvalidReadyScheduleCausality

A Ready run has impossible schedule causality (scheduled_at > created_at).

Fields

§run_id: RunId

Run identifier associated with the invalid payload.

§scheduled_at: u64

Scheduled timestamp encoded in snapshot.

§created_at: u64

Created timestamp encoded in snapshot.

§

InvalidAttemptLineageState

Attempt lineage state is semantically inconsistent with run state.

Fields

§run_id: RunId

Run identifier associated with the invalid payload.

§state: RunState

Run state that cannot carry an active attempt identifier.

§

InvalidAttemptLineageCount

Attempt lineage count is inconsistent with active attempt payload.

Fields

§run_id: RunId

Run identifier associated with the invalid payload.

§attempt_count: u32

Attempt count encoded in snapshot.

§

MissingInitialRunStateHistory

Snapshot run is missing the initial Scheduled history entry.

Fields

§run_id: RunId

Run identifier associated with the invalid payload.

§

InvalidRunStateHistoryTransition

Snapshot run state history entry is invalid.

Fields

§run_id: RunId

Run identifier associated with the invalid payload.

§from: RunState

Transition source state.

§to: RunState

Transition target state.

§

InvalidAttemptHistoryCount

Snapshot run has invalid attempt history count.

Fields

§run_id: RunId

Run identifier associated with the invalid payload.

§attempt_count: u32

Attempt count encoded in snapshot.

§history_len: usize

Attempt history entries provided in snapshot.

§

InvalidActiveAttemptHistory

Snapshot run has invalid active attempt history alignment.

Fields

§run_id: RunId

Run identifier associated with the invalid payload.

§

InvalidLeasePresence

Snapshot run has lease metadata when not allowed by state.

Fields

§run_id: RunId

Run identifier associated with the invalid payload.

§state: RunState

Run state that rejected lease presence.

§

DependencyReferencesUnknownTask

A dependency declaration references a task not present in the snapshot.

Fields

§task_id: TaskId

The task with the dependency declaration.

§prereq_id: TaskId

The prerequisite task not found in the snapshot.

§

DependencyDeclarationUnknownTask

A dependency declaration’s declaring task is not present in the snapshot.

Fields

§task_id: TaskId

The declaring task not found in the snapshot.

§

DuplicateDependencyDeclaration

Duplicate dependency declaration for the same task_id.

Fields

§task_id: TaskId

The task with duplicated declarations.

§

DuplicateBudgetAllocation

Duplicate budget allocation for the same (task_id, dimension) pair.

Fields

§task_id: TaskId

The task with duplicated allocations.

§dimension: BudgetDimension

The duplicated dimension.

§

BudgetReferencesUnknownTask

Budget allocation references a task not present in the snapshot.

Fields

§task_id: TaskId

The task referenced by the budget.

§

DuplicateSubscriptionId

Duplicate subscription identifier in snapshot.

Fields

§subscription_id: SubscriptionId

The duplicated subscription identifier.

§

SubscriptionReferencesUnknownTask

Subscription references a task not present in the snapshot.

Fields

§subscription_id: SubscriptionId

The subscription identifier.

§task_id: TaskId

The missing task identifier.

§

InvalidEnginePausedCausality

Snapshot engine control has invalid paused causality.

§

InvalidEngineResumedCausality

Snapshot engine control has invalid resumed causality.

§

InvalidEnginePauseResumeOrdering

Snapshot engine control has invalid pause/resume ordering.

Fields

§paused_at: u64

Snapshot pause timestamp.

§resumed_at: u64

Snapshot resume timestamp.

Trait Implementations§

Source§

impl Clone for SnapshotMappingError

Source§

fn clone(&self) -> SnapshotMappingError

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for SnapshotMappingError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for SnapshotMappingError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Error for SnapshotMappingError

1.30.0 · Source§

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

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl PartialEq for SnapshotMappingError

Source§

fn eq(&self, other: &SnapshotMappingError) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Eq for SnapshotMappingError

Source§

impl StructuralPartialEq for SnapshotMappingError

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more