Skip to main content

SemanticLinkError

Enum SemanticLinkError 

Source
#[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: [u8; 32], }, 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: [u8; 32], }, 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
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.
§

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: TransportDefinitionId

Exact lookup coordinate.

§features: Vec<&'static str>

Stable runtime-family labels in contract order.

§

UnexpectedDescriptorKind

A component/helper result appeared in the wrong adapter collection.

Fields

§collection: &'static str

Adapter collection label.

§expected: DescriptorKind

Required body kind.

§actual: DescriptorKind

Actual body kind.

§

DescriptorCodegenKindMismatch

The descriptor body and its construction-time codegen tag disagree.

Fields

§descriptor_kind: &'static str

Descriptor body kind.

§definition: TransportDefinitionId

Exact build-local definition.

§codegen_kind: &'static str

Codegen payload kind.

§

InvalidComponentCodegen

Producer-local component codegen coordinates disagree with the canonical descriptor they accompany.

Fields

§definition: TransportDefinitionId

Exact build-local definition.

§reason: String

Focused validation failure.

§

InvalidHelperCodegen

Producer-local helper codegen data disagrees with the canonical helper descriptor it accompanies.

Fields

§definition: TransportDefinitionId

Exact build-local definition.

§reason: String

Focused validation failure.

§

InvalidHelperProgram

The complete helper codegen graph fails shared final-link validation.

Fields

§reason: String

Focused shared-validator diagnostic.

§

InvalidCanonicalDescriptor

A supposedly canonical descriptor no longer satisfies canonical shape validation.

Fields

§kind: &'static str

Component/helper label.

§definition: TransportDefinitionId

Exact build-local definition.

§source: AbiValidationError

Canonical descriptor validation failure.

§

DescriptorHashMismatch

Public fields were changed without refreshing the canonical hash.

Fields

§kind: &'static str

Component/helper label.

§definition: TransportDefinitionId

Exact build-local definition.

§stored: SemanticHash

Stored descriptor hash.

§recomputed: SemanticHash

Recomputed descriptor hash.

§

MissingWitness

A required canonical witness has no exact transport resolution.

Fields

§kind: &'static str

Component/helper label.

§definition: TransportDefinitionId

Exact build-local definition when already known.

§witness: WitnessRecordId

Canonical witness ID.

§expected: SemanticWitnessKind

Required witness meaning.

§

WitnessKindMismatch

The exact witness table gives a different edge class.

Fields

§kind: &'static str

Component/helper label.

§definition: TransportDefinitionId

Exact build-local definition.

§witness: WitnessRecordId

Canonical witness ID.

§expected: SemanticWitnessKind

Required witness meaning.

§actual: SemanticWitnessKind

Actual witness meaning.

§

MissingDefiningWitness

An adapter result has no usable definition identity yet.

Fields

§kind: &'static str

Component/helper label.

§witness: WitnessRecordId

Canonical defining witness.

§

DefiningWitnessKindMismatch

The canonical defining witness resolved as an edge rather than an item.

Fields

§kind: &'static str

Component/helper label.

§witness: WitnessRecordId

Canonical defining witness.

§actual: SemanticWitnessKind

Actual witness meaning.

§

DuplicateDefinition

Two canonical records claim the same exact definition.

Fields

§definition: TransportDefinitionId

Reused exact definition.

§first_kind: &'static str

First descriptor kind.

§second_kind: &'static str

Second descriptor kind.

§

DuplicateComponentKey

Stable component identity is ambiguous.

Fields

§key: ComponentSemanticKey

Ambiguous stable key.

§first: TransportDefinitionId

First exact definition.

§second: TransportDefinitionId

Second exact definition.

§

DuplicateHelperKey

Stable helper identity is ambiguous.

Fields

§key: HelperSemanticKey

Ambiguous stable key.

§first: TransportDefinitionId

First exact definition.

§second: TransportDefinitionId

Second exact definition.

§

UnknownComponentTarget

A component witness resolved to no canonical component definition.

Fields

§parent: TransportDefinitionId

Parent exact definition.

§edge: ComponentEdgeId

Parent-local edge.

§target: TransportDefinitionId

Relocation-selected target.

§

ForeignComponentFieldTarget

A component field witness relocated to another component definition.

Fields

§component: TransportDefinitionId

Component claiming the field.

§field: ComponentFieldId

Canonical component field.

§target: TransportDefinitionId

Relocation-selected target.

§

DuplicateComponentFieldRecord

Two canonical component fields selected one exact object record.

Fields

§component: TransportDefinitionId

Defining component.

§field_record: [u8; 32]

Reused object record.

§

UnknownHelperTarget

A helper witness resolved to no canonical helper definition.

Fields

§caller_kind: &'static str

Component/helper caller label.

§caller: TransportDefinitionId

Caller exact definition.

§call: HelperCallEdgeId

Caller-local helper edge.

§target: TransportDefinitionId

Relocation-selected target.

§

RecursiveStaticComponentGraph

A component definition recursively reaches itself through static sites.

Fields

§root: ComponentSemanticKey

Standalone root whose expansion found the cycle.

§parent: ComponentSemanticKey

Component containing the back edge.

§edge: ComponentEdgeId

Parent-local edge that closes the cycle.

§target: ComponentSemanticKey

Ancestor 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: ComponentSemanticKey

Standalone root whose expansion reached the nested site.

§parent: ComponentSemanticKey

Component containing the nested dynamic edge.

§edge: ComponentEdgeId

Parent-local dynamic edge.

§control: LocalControlRegionId

Parent-local conditional control.

§branch: ComponentLifecycleBranch

Branch containing the component occurrence.

§path: Vec<ComponentEdgeId>

Root-relative path including the nested edge.

§reactive_lifecycle_root: OwnerCandidateId

Existing conditional site governing the parent.

§

DynamicSharedStateProviderHostUnsupported

A provider declaration inherited a client-controlled component lifecycle. V1 provider scopes must be established by the static shell.

Fields

§root: ComponentSemanticKey

Standalone root whose expansion reached the provider.

§host: ComponentSemanticKey

Component containing the provider declaration.

§provider_site: ProviderSiteId

Host-local provider site.

§path: Vec<ComponentEdgeId>

Root-relative path to the provider host.

§reactive_lifecycle_root: OwnerCandidateId

Conditional component site governing the host.

§

SharedStateDeclarationConflict

One public SharedState key names incompatible schemas anywhere in the closed definition set.

Fields

§type_key: String

Conflicting public protocol key.

§first_schema: SemanticHash

First schema encountered in canonical component order.

§first_component: ComponentSemanticKey

First declaring component.

§second_schema: SemanticHash

Incompatible schema.

§second_component: ComponentSemanticKey

Later declaring component.

§

InvalidNodeRefHandleAlias

A static direct component edge does not provide the exact NodeRef handle required by its child definition.

Fields

§parent: ComponentSemanticKey

Parent component.

§edge: ComponentEdgeId

Parent-local static direct edge.

§child: ComponentSemanticKey

Resolved child component.

§reason: String

Focused contract mismatch.

§

NodeRefAliasOwnerMismatch

A NodeRef handle edge did not force parent and child into one owner.

Fields

§parent: OwnerCandidateId

Parent occurrence.

§edge: ComponentEdgeId

Parent-local edge.

§child: OwnerCandidateId

Child occurrence.

§

WitnessClaimedMultipleTimes

One canonical witness was reused for distinct semantic edges.

Fields

§kind: &'static str

Component/helper label.

§definition: TransportDefinitionId

Exact definition.

§witness: WitnessRecordId

Reused witness.

§

DuplicateSourceEdge

Two witness records claim the same exact source edge.

Fields

§kind: &'static str

Component/helper label.

§definition: TransportDefinitionId

Exact definition.

§edge_kind: &'static str

Component/helper edge label.

§source_edge: [u8; 32]

Reused source edge.

§

UnclaimedWitness

The bridge contains a relocation witness no canonical record consumed.

Fields

§kind: &'static str

Component/helper label.

§definition: TransportDefinitionId

Exact definition.

§witness: WitnessRecordId

Canonical witness ID.

§actual: SemanticWitnessKind

Witness table meaning.

§

ReachableOriginatingHelper

A reachable helper violates the v1 origin-free contract.

Fields

§helper: HelperSemanticKey

Stable helper identity.

§

ComponentGraph(ComponentGraphLinkError)

Canonical component resolution or owner partitioning failed.

§

SharedState(SharedStateSchemaConflict)

SharedState public key selected incompatible wire schemas.

Trait Implementations§

Source§

impl Debug for SemanticLinkError

Source§

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

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

impl Display for SemanticLinkError

Source§

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

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

impl Error for SemanticLinkError

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

Replaced by Error::source.
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 From<ComponentGraphLinkError> for SemanticLinkError

Source§

fn from(source: ComponentGraphLinkError) -> SemanticLinkError

Converts to this type from the input type.
Source§

impl From<SharedStateSchemaConflict> for SemanticLinkError

Source§

fn from(source: SharedStateSchemaConflict) -> SemanticLinkError

Converts to this type from the input type.

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> 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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ

Converts 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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

Converts 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
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

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

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, S> SimdFrom<T, S> for T
where S: Simd,

Source§

fn simd_from(_simd: S, value: T) -> T

Source§

impl<F, T, S> SimdInto<T, S> for F
where T: SimdFrom<F, S>, S: Simd,

Source§

fn simd_into(self, simd: S) -> T

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 = !

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

fn try_from(value: U) -> Result<T, !>

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