Skip to main content

TransportLinkError

Enum TransportLinkError 

Source
pub enum TransportLinkError {
Show 68 variants InvalidManifest(BuildIdentityError), NoDescriptorObjects, RelativeDescriptorObject(PathBuf), DuplicateDescriptorPath(PathBuf), DuplicateDescriptorUnit(CargoUnitId), DuplicateValidatedDescriptorUnit(CargoUnitId), MissingValidatedDescriptorUnit(CargoUnitId), ValidatedDescriptorPathMismatch { unit: CargoUnitId, manifest: PathBuf, validated: PathBuf, }, InvalidValidatedDescriptorHash { unit: CargoUnitId, value: String, }, DescriptorUnitSetMismatch { expected: BTreeSet<CargoUnitId>, actual: BTreeSet<CargoUnitId>, }, HashDescriptorObject { path: PathBuf, source: Error, }, DescriptorObjectHashMismatch { path: PathBuf, expected: SemanticHash, actual: SemanticHash, }, DescriptorObjectIdentityHashMismatch { path: PathBuf, expected: [u8; 32], actual: [u8; 32], }, Extraction(ExtractionError), ExtractionArtifactCount { expected: usize, actual: usize, }, ExtractionArtifactOrder { expected: PathBuf, actual: PathBuf, }, UnassignedCargoUnit { kind: &'static str, location: String, }, CargoUnitMismatch { kind: &'static str, location: String, expected: CargoUnitId, actual: String, }, DuplicateSourceEdge { kind: &'static str, unit: String, source_edge: String, }, DuplicateComponentField { unit: String, field_record: String, }, DuplicateSharedStateAcquisition { unit: String, source_edge: String, }, ParsePayload { kind: &'static str, source: Error, }, InvalidPayloadSchema { kind: &'static str, location: String, source: Error, }, UnsupportedPayload { kind: &'static str, format: String, schema_version: u16, }, UnsupportedComponentDescriptor { format: String, schema_version: u64, }, MissingComponentDescriptorHash, UnsupportedHelperAbi { body_hir: u16, body_ir: u16, codec: u16, effect_class: String, }, MissingSemanticHash(&'static str), PayloadMustBeObject(&'static str), InvalidHash(String), InvalidRecordId { field: &'static str, value: String, }, SerializePayload { kind: &'static str, source: Error, }, EmbeddedSemanticHashMismatch { kind: &'static str, expected: SemanticHash, actual: SemanticHash, }, PayloadDefinitionMismatch { kind: &'static str, expected: String, actual: String, }, InvalidIdentityAuthority { kind: &'static str, authority: String, }, MissingSourceEdge { kind: &'static str, unit: String, source_edge: String, }, SourceEdgeClaimedTwice { kind: &'static str, unit: String, source_edge: String, }, ComponentFieldIdOverflow, NonDenseComponentFieldClaims { component: TransportDefinitionId, expected: u32, actual: u32, }, InvalidComponentFieldRoleShape { field: String, role: String, callback_shape: String, }, ComponentFieldRecordIdMismatch { component: TransportDefinitionId, field: String, expected: String, actual: String, }, MissingComponentField { unit: String, field_record: String, }, ComponentFieldClaimedTwice { unit: String, field_record: String, }, ComponentFieldTargetMismatch { field: String, expected: TransportDefinitionId, actual: TransportDefinitionId, }, SharedStateStoreIdOverflow, NonDenseSharedStateAcquisitionClaims { component: TransportDefinitionId, expected: u32, actual: u32, }, SharedStateAcquisitionClaimCountMismatch { component: TransportDefinitionId, stores: usize, claims: usize, }, InvalidSharedStateDescriptorStores { component: TransportDefinitionId, reason: String, }, SharedStateAcquisitionRecordIdMismatch { component: TransportDefinitionId, store_id: u32, expected: String, actual: String, }, MissingSharedStateAcquisition { component: TransportDefinitionId, store_id: u32, unit: String, source_edge: String, }, SharedStateAcquisitionClaimedTwice { unit: String, source_edge: String, }, SharedStateProviderSiteIdOverflow, NonDenseSharedStateProviderSiteClaims { component: TransportDefinitionId, expected: u32, actual: u32, }, SharedStateProviderSiteClaimCountMismatch { component: TransportDefinitionId, descriptor_sites: usize, claims: usize, }, InvalidSharedStateProviderSites { component: TransportDefinitionId, reason: String, }, InvalidSharedStateProviderSite { component: TransportDefinitionId, provider_site_id: u32, reason: String, }, SharedStateProviderChildClaimedTwice { component: TransportDefinitionId, child_edge: u32, }, SharedStateProviderDescriptorClaimMismatch { component: TransportDefinitionId, provider_site_id: u32, }, SharedStateProviderChildEdgeMismatch { component: TransportDefinitionId, provider_site_id: u32, expected: String, actual: String, }, SharedStateProviderRecordIdMismatch { component: TransportDefinitionId, provider_site_id: u32, expected: String, actual: String, }, MissingSharedStateProviderWitness { component: TransportDefinitionId, provider_site_id: u32, unit: String, source_edge: String, }, SharedStateProviderWitnessClaimedTwice { unit: String, source_edge: String, }, UnclaimedComponentEdges(Vec<String>), UnclaimedComponentFields(Vec<String>), UnclaimedHelperEdges(Vec<String>), UnclaimedSharedStateAcquisitions(Vec<String>), SharedStateResolutionMismatch { kind: &'static str, extracted: Vec<String>, resolved: Vec<String>, }, MissingSharedStateAcquisitionTarget { source_unit: CargoUnitId, source_edge: String, target: TransportDefinitionId, },
}
Expand description

Exact-artifact extraction or transport-link validation failure.

Variants§

§

InvalidManifest(BuildIdentityError)

Root manifest failed canonical validation.

§

NoDescriptorObjects

No exact descriptor objects were supplied.

§

RelativeDescriptorObject(PathBuf)

Descriptor object path must be exact and absolute.

§

DuplicateDescriptorPath(PathBuf)

One exact path appeared more than once.

§

DuplicateDescriptorUnit(CargoUnitId)

Every reachable unit must have exactly one descriptor object.

§

DuplicateValidatedDescriptorUnit(CargoUnitId)

Validated descriptor evidence must be unique by Cargo unit.

§

MissingValidatedDescriptorUnit(CargoUnitId)

Every manifest descriptor must retain its authoritative wrapper unit.

§

ValidatedDescriptorPathMismatch

Manifest and wrapper evidence must name the same exact object path.

Fields

§unit: CargoUnitId

Exact Cargo unit.

§manifest: PathBuf

Manifest path.

§validated: PathBuf

Validated wrapper/cache path.

§

InvalidValidatedDescriptorHash

Wrapper-validated descriptor hashes are exact lowercase SHA-256 values.

Fields

§unit: CargoUnitId

Exact Cargo unit.

§value: String

Rejected hash.

§

DescriptorUnitSetMismatch

Descriptor objects must cover the exact manifest unit set.

Fields

§expected: BTreeSet<CargoUnitId>

All units represented by the manifest.

§actual: BTreeSet<CargoUnitId>

Units represented by descriptor objects.

§

HashDescriptorObject

Exact artifact could not be hashed.

Fields

§path: PathBuf

Exact path.

§source: Error

I/O error.

§

DescriptorObjectHashMismatch

Exact bytes changed after manifest construction.

Fields

§path: PathBuf

Exact path.

§expected: SemanticHash

Manifest hash.

§actual: SemanticHash

Fresh hash.

§

DescriptorObjectIdentityHashMismatch

Exact extraction bytes must still match the wrapper-authoritative descriptor-domain hash, not only the freshly assembled link manifest.

Fields

§path: PathBuf

Exact path.

§expected: [u8; 32]

Wrapper/cache descriptor-domain hash.

§actual: [u8; 32]

Hash of the exact bytes passed to the extractor.

§

Extraction(ExtractionError)

Object/rlib transport extraction failed.

§

ExtractionArtifactCount

Extractor returned a different number of exact inputs.

Fields

§expected: usize

Manifest count.

§actual: usize

Extracted count.

§

ExtractionArtifactOrder

Extractor did not preserve the exact caller order.

Fields

§expected: PathBuf

Exact requested path.

§actual: PathBuf

Actual extracted path.

§

UnassignedCargoUnit

Placeholder unit IDs are forbidden after descriptor orchestration.

Fields

§kind: &'static str

Record kind.

§location: String

Exact object location.

§

CargoUnitMismatch

A record’s embedded unit disagreed with the manifest-listed object.

Fields

§kind: &'static str

Record kind.

§location: String

Exact object location.

§expected: CargoUnitId

Manifest unit.

§actual: String

Embedded lower-case hexadecimal unit.

§

DuplicateSourceEdge

Duplicate source-edge ID in one unit.

Fields

§kind: &'static str

Edge kind.

§unit: String

Unit ID.

§source_edge: String

Source edge ID.

§

DuplicateComponentField

Duplicate component-field record in one unit.

Fields

§unit: String

Descriptor-pass Cargo unit.

§field_record: String

Field record ID.

§

DuplicateSharedStateAcquisition

Two extracted SharedState acquisition records reused one source edge.

Fields

§unit: String

Descriptor-pass Cargo unit.

§source_edge: String

Component-local source-edge ID.

§

ParsePayload

Embedded descriptor bytes are not JSON.

Fields

§kind: &'static str

Payload kind.

§source: Error

JSON error.

§

InvalidPayloadSchema

Payload wrapper schema does not match its fixed contract.

Fields

§kind: &'static str

Payload kind.

§location: String

Exact object location.

§source: Error

JSON schema error.

§

UnsupportedPayload

Payload format/version unsupported by this linker.

Fields

§kind: &'static str

Payload kind.

§format: String

Format tag.

§schema_version: u16

Schema version.

§

UnsupportedComponentDescriptor

Current component descriptor schema is not the expected v9 bridge.

Fields

§format: String

Descriptor format.

§schema_version: u64

Descriptor schema.

§

MissingComponentDescriptorHash

Component bridge descriptor omitted its stored content hash.

§

UnsupportedHelperAbi

Standalone helper ABI is unsupported.

Fields

§body_hir: u16

Helper HIR version.

§body_ir: u16

Client IR version.

§codec: u16

Codec ABI version.

§effect_class: String

Effect class.

§

MissingSemanticHash(&'static str)

Required semantic hash is absent.

§

PayloadMustBeObject(&'static str)

Semantic payload must be a JSON object.

§

InvalidHash(String)

Hash has the wrong prefix, length, or alphabet.

§

InvalidRecordId

Record ID has the wrong length or alphabet.

Fields

§field: &'static str

Field name.

§value: String

Rejected value.

§

SerializePayload

Re-encoding a parsed payload failed.

Fields

§kind: &'static str

Payload kind.

§source: Error

JSON error.

§

EmbeddedSemanticHashMismatch

Stored producer semantic hash did not match the payload.

Fields

§kind: &'static str

Payload kind.

§expected: SemanticHash

Recomputed hash.

§actual: SemanticHash

Stored hash.

§

PayloadDefinitionMismatch

Payload and defining record disagree.

Fields

§kind: &'static str

Definition kind.

§expected: String

Extracted definition record.

§actual: String

Payload metadata.

§

InvalidIdentityAuthority

Producer claimed token identity rather than Rust relocation identity.

Fields

§kind: &'static str

Edge kind.

§authority: String

Producer authority tag.

§

MissingSourceEdge

Payload listed no matching relocation edge.

Fields

§kind: &'static str

Edge kind.

§unit: String

Source unit.

§source_edge: String

Source edge ID.

§

SourceEdgeClaimedTwice

Two payloads claimed one source edge.

Fields

§kind: &'static str

Edge kind.

§unit: String

Source unit.

§source_edge: String

Source edge ID.

§

ComponentFieldIdOverflow

Component field claim count exceeded the canonical u32 ID space.

§

NonDenseComponentFieldClaims

Component field claims were not in dense field-ID order.

Fields

§component: TransportDefinitionId

Defining component.

§expected: u32

Expected dense field ID.

§actual: u32

Claimed field ID.

§

InvalidComponentFieldRoleShape

A field role and callback shape formed an impossible contract.

Fields

§field: String

Source field name.

§role: String

Claimed role.

§callback_shape: String

Claimed callback shape.

§

ComponentFieldRecordIdMismatch

The payload’s field record ID was not the deterministic ID for its fingerprint and behavior claim.

Fields

§component: TransportDefinitionId

Defining component.

§field: String

Source field name.

§expected: String

Independently recomputed record ID.

§actual: String

Payload claim.

§

MissingComponentField

A payload listed no matching exact object record.

Fields

§unit: String

Descriptor-pass Cargo unit.

§field_record: String

Field record ID.

§

ComponentFieldClaimedTwice

Two payload claims selected one component-field object record.

Fields

§unit: String

Descriptor-pass Cargo unit.

§field_record: String

Field record ID.

§

ComponentFieldTargetMismatch

A field record relocated to a component other than the payload that claimed it.

Fields

§field: String

Source field name.

§expected: TransportDefinitionId

Payload’s defining component.

§actual: TransportDefinitionId

Relocation-selected component.

§

SharedStateStoreIdOverflow

SharedState acquisition claim count exceeded the canonical u32 ID space.

§

NonDenseSharedStateAcquisitionClaims

Component SharedState acquisition claims were not in dense store-ID order.

Fields

§component: TransportDefinitionId

Defining component.

§expected: u32

Expected dense store ID.

§actual: u32

Claimed store ID.

§

SharedStateAcquisitionClaimCountMismatch

Descriptor SharedState stores and payload ownership claims were not one-to-one.

Fields

§component: TransportDefinitionId

Defining component.

§stores: usize

Number of descriptor stores.

§claims: usize

Number of payload ownership claims.

§

InvalidSharedStateDescriptorStores

The embedded descriptor’s SharedState store table was malformed.

Fields

§component: TransportDefinitionId

Defining component.

§reason: String

Focused validation failure.

§

SharedStateAcquisitionRecordIdMismatch

A payload claim did not use the deterministic source-edge ID for its component fingerprint and store ID.

Fields

§component: TransportDefinitionId

Defining component.

§store_id: u32

Component-local SharedStoreId.

§expected: String

Independently recomputed source-edge ID.

§actual: String

Payload claim.

§

MissingSharedStateAcquisition

A component payload listed no matching acquisition object record.

Fields

§component: TransportDefinitionId

Defining component.

§store_id: u32

Component-local SharedStoreId.

§unit: String

Descriptor-pass Cargo unit.

§source_edge: String

Claimed source-edge ID.

§

SharedStateAcquisitionClaimedTwice

Two component payload claims selected one acquisition object record.

Fields

§unit: String

Descriptor-pass Cargo unit.

§source_edge: String

Reused source-edge ID.

§

SharedStateProviderSiteIdOverflow

SharedState provider claim count exceeded the canonical u32 ID space.

§

NonDenseSharedStateProviderSiteClaims

Component provider-site claims were not in dense site-ID order.

Fields

§component: TransportDefinitionId

Defining component.

§expected: u32

Expected dense provider site ID.

§actual: u32

Claimed provider site ID.

§

SharedStateProviderSiteClaimCountMismatch

Debug descriptor provider sites and transport claims were not one-to-one.

Fields

§component: TransportDefinitionId

Defining component.

§descriptor_sites: usize

Number of descriptor provider sites.

§claims: usize

Number of transport claims.

§

InvalidSharedStateProviderSites

The embedded descriptor’s provider topology was malformed.

Fields

§component: TransportDefinitionId

Defining component.

§reason: String

Focused validation failure.

§

InvalidSharedStateProviderSite

One provider claim did not describe the supported static topology.

Fields

§component: TransportDefinitionId

Defining component.

§provider_site_id: u32

Dense provider site ID.

§reason: String

Focused validation failure.

§

SharedStateProviderChildClaimedTwice

More than one provider attempted to own the same direct child edge.

Fields

§component: TransportDefinitionId

Defining component.

§child_edge: u32

Reused child edge ordinal.

§

SharedStateProviderDescriptorClaimMismatch

Provider transport and debug-descriptor metadata disagreed.

Fields

§component: TransportDefinitionId

Defining component.

§provider_site_id: u32

Dense provider site ID.

§

SharedStateProviderChildEdgeMismatch

Provider claim selected a different direct component source edge.

Fields

§component: TransportDefinitionId

Defining component.

§provider_site_id: u32

Dense provider site ID.

§expected: String

Direct component claim.

§actual: String

Provider claim.

§

SharedStateProviderRecordIdMismatch

Provider claim did not use its deterministic topology-bound source ID.

Fields

§component: TransportDefinitionId

Defining component.

§provider_site_id: u32

Dense provider site ID.

§expected: String

Independently recomputed source-edge ID.

§actual: String

Payload claim.

§

MissingSharedStateProviderWitness

Provider claim listed no exact SharedState witness relocation.

Fields

§component: TransportDefinitionId

Defining component.

§provider_site_id: u32

Dense provider site ID.

§unit: String

Descriptor-pass Cargo unit.

§source_edge: String

Claimed provider source-edge ID.

§

SharedStateProviderWitnessClaimedTwice

More than one payload claim selected the provider’s witness record.

Fields

§unit: String

Descriptor-pass Cargo unit.

§source_edge: String

Reused source-edge ID.

§

UnclaimedComponentEdges(Vec<String>)

Extracted component edges absent from every defining payload.

§

UnclaimedComponentFields(Vec<String>)

Extracted component-field records absent from every defining payload.

§

UnclaimedHelperEdges(Vec<String>)

Extracted helper edges absent from every component/helper payload.

§

UnclaimedSharedStateAcquisitions(Vec<String>)

Extracted SharedState acquisitions absent from every defining component payload.

§

SharedStateResolutionMismatch

Exact SharedState records returned by extraction were not preserved one-for-one in the corresponding resolved join.

Fields

§kind: &'static str

SharedState record kind.

§extracted: Vec<String>

Exact extracted (CargoUnitId, record/source-edge) keys.

§resolved: Vec<String>

Exact relocation/payload-resolved keys.

§

MissingSharedStateAcquisitionTarget

A resolved acquisition selected a definition absent from the exact definition/payload join.

Fields

§source_unit: CargoUnitId

Cargo unit containing the acquisition.

§source_edge: String

Lower-case source-edge record ID.

§target: TransportDefinitionId

Relocation-selected definition.

Trait Implementations§

Source§

impl Debug for TransportLinkError

Source§

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

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

impl Display for TransportLinkError

Source§

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

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

impl Error for TransportLinkError

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<ExtractionError> for TransportLinkError

Source§

fn from(source: ExtractionError) -> TransportLinkError

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