#[non_exhaustive]pub enum SemanticLinkError {
Show 32 variants
Unsupported(UnsupportedDescriptor),
UnsupportedLinkedOwnerRuntimeFeatures {
definition: TransportDefinitionId,
features: Vec<&'static str>,
},
UnexpectedDescriptorKind {
collection: &'static str,
expected: DescriptorKind,
actual: DescriptorKind,
},
DescriptorCodegenKindMismatch {
descriptor_kind: &'static str,
definition: TransportDefinitionId,
codegen_kind: &'static str,
},
InvalidComponentCodegen {
definition: TransportDefinitionId,
reason: String,
},
InvalidHelperCodegen {
definition: TransportDefinitionId,
reason: String,
},
InvalidHelperProgram {
reason: String,
},
InvalidCanonicalDescriptor {
kind: &'static str,
definition: TransportDefinitionId,
source: AbiValidationError,
},
DescriptorHashMismatch {
kind: &'static str,
definition: TransportDefinitionId,
stored: SemanticHash,
recomputed: SemanticHash,
},
MissingWitness {
kind: &'static str,
definition: TransportDefinitionId,
witness: WitnessRecordId,
expected: SemanticWitnessKind,
},
WitnessKindMismatch {
kind: &'static str,
definition: TransportDefinitionId,
witness: WitnessRecordId,
expected: SemanticWitnessKind,
actual: SemanticWitnessKind,
},
MissingDefiningWitness {
kind: &'static str,
witness: WitnessRecordId,
},
DefiningWitnessKindMismatch {
kind: &'static str,
witness: WitnessRecordId,
actual: SemanticWitnessKind,
},
DuplicateDefinition {
definition: TransportDefinitionId,
first_kind: &'static str,
second_kind: &'static str,
},
DuplicateComponentKey {
key: ComponentSemanticKey,
first: TransportDefinitionId,
second: TransportDefinitionId,
},
DuplicateHelperKey {
key: HelperSemanticKey,
first: TransportDefinitionId,
second: TransportDefinitionId,
},
UnknownComponentTarget {
parent: TransportDefinitionId,
edge: ComponentEdgeId,
target: TransportDefinitionId,
},
ForeignComponentFieldTarget {
component: TransportDefinitionId,
field: ComponentFieldId,
target: TransportDefinitionId,
},
DuplicateComponentFieldRecord {
component: TransportDefinitionId,
field_record: TransportRecordId,
},
UnknownHelperTarget {
caller_kind: &'static str,
caller: TransportDefinitionId,
call: HelperCallEdgeId,
target: TransportDefinitionId,
},
RecursiveStaticComponentGraph {
root: ComponentSemanticKey,
parent: ComponentSemanticKey,
edge: ComponentEdgeId,
target: ComponentSemanticKey,
path: Vec<ComponentEdgeId>,
},
UnsupportedNestedConditionalComponentSite {
root: ComponentSemanticKey,
parent: ComponentSemanticKey,
edge: ComponentEdgeId,
control: LocalControlRegionId,
branch: ComponentLifecycleBranch,
path: Vec<ComponentEdgeId>,
reactive_lifecycle_root: OwnerCandidateId,
},
DynamicSharedStateProviderHostUnsupported {
root: ComponentSemanticKey,
host: ComponentSemanticKey,
provider_site: ProviderSiteId,
path: Vec<ComponentEdgeId>,
reactive_lifecycle_root: OwnerCandidateId,
},
SharedStateDeclarationConflict {
type_key: String,
first_schema: SemanticHash,
first_component: ComponentSemanticKey,
second_schema: SemanticHash,
second_component: ComponentSemanticKey,
},
InvalidNodeRefHandleAlias {
parent: ComponentSemanticKey,
edge: ComponentEdgeId,
child: ComponentSemanticKey,
reason: String,
},
NodeRefAliasOwnerMismatch {
parent: OwnerCandidateId,
edge: ComponentEdgeId,
child: OwnerCandidateId,
},
WitnessClaimedMultipleTimes {
kind: &'static str,
definition: TransportDefinitionId,
witness: WitnessRecordId,
},
DuplicateSourceEdge {
kind: &'static str,
definition: TransportDefinitionId,
edge_kind: &'static str,
source_edge: TransportRecordId,
},
UnclaimedWitness {
kind: &'static str,
definition: TransportDefinitionId,
witness: WitnessRecordId,
actual: SemanticWitnessKind,
},
ReachableOriginatingHelper {
helper: HelperSemanticKey,
},
ComponentGraph(ComponentGraphLinkError),
SharedState(SharedStateSchemaConflict),
}Expand description
Fail-closed semantic-link failure.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Unsupported(UnsupportedDescriptor)
The adapter could not losslessly construct one canonical descriptor.
UnsupportedLinkedOwnerRuntimeFeatures
The canonical graph names a runtime family the current linked-owner emitter cannot publish faithfully.
Fields
definition: TransportDefinitionIdExact lookup coordinate.
UnexpectedDescriptorKind
A component/helper result appeared in the wrong adapter collection.
DescriptorCodegenKindMismatch
The descriptor body and its construction-time codegen tag disagree.
Fields
definition: TransportDefinitionIdExact build-local definition.
InvalidComponentCodegen
Producer-local component codegen coordinates disagree with the canonical descriptor they accompany.
Fields
definition: TransportDefinitionIdExact build-local definition.
InvalidHelperCodegen
Producer-local helper codegen data disagrees with the canonical helper descriptor it accompanies.
Fields
definition: TransportDefinitionIdExact build-local definition.
InvalidHelperProgram
The complete helper codegen graph fails shared final-link validation.
InvalidCanonicalDescriptor
A supposedly canonical descriptor no longer satisfies canonical shape validation.
Fields
definition: TransportDefinitionIdExact build-local definition.
source: AbiValidationErrorCanonical descriptor validation failure.
DescriptorHashMismatch
Public fields were changed without refreshing the canonical hash.
Fields
definition: TransportDefinitionIdExact build-local definition.
stored: SemanticHashStored descriptor hash.
recomputed: SemanticHashRecomputed descriptor hash.
MissingWitness
A required canonical witness has no exact transport resolution.
Fields
definition: TransportDefinitionIdExact build-local definition when already known.
witness: WitnessRecordIdCanonical witness ID.
expected: SemanticWitnessKindRequired witness meaning.
WitnessKindMismatch
The exact witness table gives a different edge class.
Fields
definition: TransportDefinitionIdExact build-local definition.
witness: WitnessRecordIdCanonical witness ID.
expected: SemanticWitnessKindRequired witness meaning.
actual: SemanticWitnessKindActual witness meaning.
MissingDefiningWitness
An adapter result has no usable definition identity yet.
Fields
witness: WitnessRecordIdCanonical defining witness.
DefiningWitnessKindMismatch
The canonical defining witness resolved as an edge rather than an item.
Fields
witness: WitnessRecordIdCanonical defining witness.
actual: SemanticWitnessKindActual witness meaning.
DuplicateDefinition
Two canonical records claim the same exact definition.
Fields
definition: TransportDefinitionIdReused exact definition.
DuplicateComponentKey
Stable component identity is ambiguous.
Fields
key: ComponentSemanticKeyAmbiguous stable key.
first: TransportDefinitionIdFirst exact definition.
second: TransportDefinitionIdSecond exact definition.
DuplicateHelperKey
Stable helper identity is ambiguous.
Fields
key: HelperSemanticKeyAmbiguous stable key.
first: TransportDefinitionIdFirst exact definition.
second: TransportDefinitionIdSecond exact definition.
UnknownComponentTarget
A component witness resolved to no canonical component definition.
Fields
parent: TransportDefinitionIdParent exact definition.
edge: ComponentEdgeIdParent-local edge.
target: TransportDefinitionIdRelocation-selected target.
ForeignComponentFieldTarget
A component field witness relocated to another component definition.
Fields
component: TransportDefinitionIdComponent claiming the field.
field: ComponentFieldIdCanonical component field.
target: TransportDefinitionIdRelocation-selected target.
DuplicateComponentFieldRecord
Two canonical component fields selected one exact object record.
Fields
component: TransportDefinitionIdDefining component.
field_record: TransportRecordIdReused object record.
UnknownHelperTarget
A helper witness resolved to no canonical helper definition.
Fields
caller: TransportDefinitionIdCaller exact definition.
call: HelperCallEdgeIdCaller-local helper edge.
target: TransportDefinitionIdRelocation-selected target.
RecursiveStaticComponentGraph
A component definition recursively reaches itself through static sites.
Fields
root: ComponentSemanticKeyStandalone root whose expansion found the cycle.
parent: ComponentSemanticKeyComponent containing the back edge.
edge: ComponentEdgeIdParent-local edge that closes the cycle.
target: ComponentSemanticKeyAncestor definition reached again.
path: Vec<ComponentEdgeId>Root-relative path including the closing edge.
UnsupportedNestedConditionalComponentSite
A conditional site cannot be nested under another conditional component lifetime until nested mount generations are represented.
Fields
root: ComponentSemanticKeyStandalone root whose expansion reached the nested site.
parent: ComponentSemanticKeyComponent containing the nested dynamic edge.
edge: ComponentEdgeIdParent-local dynamic edge.
control: LocalControlRegionIdParent-local conditional control.
branch: ComponentLifecycleBranchBranch containing the component occurrence.
path: Vec<ComponentEdgeId>Root-relative path including the nested edge.
reactive_lifecycle_root: OwnerCandidateIdExisting conditional site governing the parent.
A provider declaration inherited a client-controlled component lifecycle. V1 provider scopes must be established by the static shell.
One public SharedState key names incompatible schemas anywhere in the closed definition set.
InvalidNodeRefHandleAlias
A static direct component edge does not provide the exact NodeRef handle required by its child definition.
Fields
parent: ComponentSemanticKeyParent component.
edge: ComponentEdgeIdParent-local static direct edge.
child: ComponentSemanticKeyResolved child component.
NodeRefAliasOwnerMismatch
A NodeRef handle edge did not force parent and child into one owner.
Fields
parent: OwnerCandidateIdParent occurrence.
edge: ComponentEdgeIdParent-local edge.
child: OwnerCandidateIdChild occurrence.
WitnessClaimedMultipleTimes
One canonical witness was reused for distinct semantic edges.
DuplicateSourceEdge
Two witness records claim the same exact source edge.
Fields
definition: TransportDefinitionIdExact definition.
source_edge: TransportRecordIdReused source edge.
UnclaimedWitness
The bridge contains a relocation witness no canonical record consumed.
Fields
definition: TransportDefinitionIdExact definition.
witness: WitnessRecordIdCanonical witness ID.
actual: SemanticWitnessKindWitness table meaning.
ReachableOriginatingHelper
A reachable helper violates the v1 origin-free contract.
Fields
helper: HelperSemanticKeyStable helper identity.
ComponentGraph(ComponentGraphLinkError)
Canonical component resolution or owner partitioning failed.
SharedState public key selected incompatible wire schemas.
Trait Implementations§
Source§impl Debug for SemanticLinkError
impl Debug for SemanticLinkError
Source§impl Display for SemanticLinkError
impl Display for SemanticLinkError
Source§impl Error for SemanticLinkError
impl Error for SemanticLinkError
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<ComponentGraphLinkError> for SemanticLinkError
impl From<ComponentGraphLinkError> for SemanticLinkError
Source§fn from(source: ComponentGraphLinkError) -> Self
fn from(source: ComponentGraphLinkError) -> Self
Source§fn from(source: SharedStateSchemaConflict) -> Self
fn from(source: SharedStateSchemaConflict) -> Self
Auto Trait Implementations§
impl Freeze for SemanticLinkError
impl RefUnwindSafe for SemanticLinkError
impl Send for SemanticLinkError
impl Sync for SemanticLinkError
impl Unpin for SemanticLinkError
impl UnsafeUnpin for SemanticLinkError
impl UnwindSafe for SemanticLinkError
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