#[non_exhaustive]pub enum SemanticPlanValidationError {
Show 27 variants
LinkUnitMismatch {
expected: LinkUnitId,
actual: LinkUnitId,
},
UnexpectedDescriptorKind {
definition: TransportDefinitionId,
expected: DescriptorKind,
actual: DescriptorKind,
},
InvalidComponentCodegen {
definition: TransportDefinitionId,
reason: String,
},
InvalidHelperCodegen {
definition: TransportDefinitionId,
reason: String,
},
InvalidHelperProgram {
reason: String,
},
InvalidCanonicalDescriptor {
definition: TransportDefinitionId,
source: AbiValidationError,
},
NestedConditionalComponentSite {
candidate: OwnerCandidateId,
reactive_lifecycle_root: OwnerCandidateId,
},
UnsupportedLinkedOwnerRuntimeFeatures {
definition: TransportDefinitionId,
features: Vec<&'static str>,
},
ComponentKeyMismatch {
definition: TransportDefinitionId,
},
HelperKeyMismatch {
definition: TransportDefinitionId,
},
DescriptorHashMismatch {
definition: TransportDefinitionId,
stored: SemanticHash,
recomputed: SemanticHash,
},
NonDenseComponentSite {
expected: OwnerCandidateId,
actual: OwnerCandidateId,
},
UnknownComponentSiteDefinition {
candidate: OwnerCandidateId,
definition: TransportDefinitionId,
component: ComponentSemanticKey,
},
InvalidRootComponentSite {
candidate: OwnerCandidateId,
},
InvalidChildComponentSite {
candidate: OwnerCandidateId,
},
InvalidComponentInputGraph(ComponentGraphLinkError),
ComponentInputsMismatch,
OwnerPlanMismatch,
SharedStatePlanMismatch,
SharedStateProviderTopologyMismatch,
NodeRefAliasTopologyMismatch,
NodeRefAliasOwnerMismatch {
parent: OwnerCandidateId,
edge: ComponentEdgeId,
child: OwnerCandidateId,
},
InvalidSharedStateProviderTopology {
reason: String,
},
ComponentDescriptorHashesMismatch,
HelperDescriptorHashesMismatch,
PayloadHashMismatch {
stored: SemanticHash,
recomputed: SemanticHash,
},
PlanIdMismatch {
stored: PlanId,
recomputed: PlanId,
},
}Expand description
Internal-consistency failure in an owned semantic plan.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
LinkUnitMismatch
The material belongs to a different root.
UnexpectedDescriptorKind
A linked record’s envelope has the wrong body kind.
Fields
definition: TransportDefinitionIdExact lookup coordinate.
expected: DescriptorKindRequired body kind.
actual: DescriptorKindActual body kind.
InvalidComponentCodegen
A component’s producer-local relocation table no longer matches its canonical descriptor.
Fields
definition: TransportDefinitionIdExact lookup coordinate.
InvalidHelperCodegen
A helper’s concrete final-codegen data no longer matches its canonical descriptor.
Fields
definition: TransportDefinitionIdExact lookup coordinate.
InvalidHelperProgram
The complete persisted helper graph fails shared final-link validation.
InvalidCanonicalDescriptor
A persisted descriptor no longer satisfies canonical shape validation.
Fields
definition: TransportDefinitionIdExact lookup coordinate.
source: AbiValidationErrorCanonical descriptor validation failure.
NestedConditionalComponentSite
A nested conditional site was inserted into an otherwise coherent semantic plan.
Fields
candidate: OwnerCandidateIdNested site candidate.
reactive_lifecycle_root: OwnerCandidateIdExisting conditional site governing its parent.
UnsupportedLinkedOwnerRuntimeFeatures
A component graph names a runtime family the final linked-owner emitter cannot publish faithfully.
Fields
definition: TransportDefinitionIdExact lookup coordinate.
ComponentKeyMismatch
A copied stable key disagrees with its canonical descriptor.
Fields
definition: TransportDefinitionIdExact lookup coordinate.
HelperKeyMismatch
A copied stable key disagrees with its canonical descriptor.
Fields
definition: TransportDefinitionIdExact lookup coordinate.
DescriptorHashMismatch
A descriptor body changed without refreshing its hash.
Fields
definition: TransportDefinitionIdExact lookup coordinate.
stored: SemanticHashStored descriptor hash.
recomputed: SemanticHashRecomputed descriptor hash.
NonDenseComponentSite
Component site IDs must be unique and dense.
Fields
expected: OwnerCandidateIdRequired candidate ID.
actual: OwnerCandidateIdCandidate ID that appeared.
UnknownComponentSiteDefinition
A component site names no matching deduplicated definition.
Fields
candidate: OwnerCandidateIdSite candidate.
definition: TransportDefinitionIdExact build-local definition.
component: ComponentSemanticKeyCopied stable key.
InvalidRootComponentSite
Root-site metadata is internally inconsistent.
Fields
candidate: OwnerCandidateIdRoot site candidate.
InvalidChildComponentSite
Child-site metadata does not match its parent edge.
Fields
candidate: OwnerCandidateIdChild site candidate.
InvalidComponentInputGraph(ComponentGraphLinkError)
Candidate-specific component inputs could not be re-linked.
ComponentInputsMismatch
Stored timing/callback records differ from descriptor-derived records.
OwnerPlanMismatch
Stored owners differ from the descriptor-derived coupling graph.
Stored SharedState schemas/consumers differ from descriptor-derived records.
Stored standalone-root decisions or exact provider resolutions differ from a fresh lexical-topology expansion.
NodeRefAliasTopologyMismatch
Stored occurrence-specific NodeRef aliases differ from a fresh static component expansion.
NodeRefAliasOwnerMismatch
A stored NodeRef alias crosses final owner partitions.
Fields
parent: OwnerCandidateIdParent occurrence.
edge: ComponentEdgeIdParent-local edge.
child: OwnerCandidateIdChild occurrence.
Canonical provider topology could not be reconstructed from a mutated owned plan.
ComponentDescriptorHashesMismatch
Component descriptor input hashes are incomplete or reordered.
HelperDescriptorHashesMismatch
Helper descriptor input hashes are incomplete or reordered.
PayloadHashMismatch
The behavior payload no longer matches the material.
Fields
stored: SemanticHashHash in LinkPlanMaterial.
recomputed: SemanticHashHash over current canonical plan fields.
PlanIdMismatch
The public plan ID no longer matches its material.
Trait Implementations§
Source§impl Debug for SemanticPlanValidationError
impl Debug for SemanticPlanValidationError
Source§impl Error for SemanticPlanValidationError
impl Error for SemanticPlanValidationError
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<SemanticPlanValidationError> for SemanticPlanSerializationError
impl From<SemanticPlanValidationError> for SemanticPlanSerializationError
Source§fn from(source: SemanticPlanValidationError) -> Self
fn from(source: SemanticPlanValidationError) -> Self
Auto Trait Implementations§
impl Freeze for SemanticPlanValidationError
impl RefUnwindSafe for SemanticPlanValidationError
impl Send for SemanticPlanValidationError
impl Sync for SemanticPlanValidationError
impl Unpin for SemanticPlanValidationError
impl UnsafeUnpin for SemanticPlanValidationError
impl UnwindSafe for SemanticPlanValidationError
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> 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