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: CargoUnitIdExact Cargo unit.
InvalidValidatedDescriptorHash
Wrapper-validated descriptor hashes are exact lowercase SHA-256 values.
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.
DescriptorObjectHashMismatch
Exact bytes changed after manifest construction.
DescriptorObjectIdentityHashMismatch
Exact extraction bytes must still match the wrapper-authoritative descriptor-domain hash, not only the freshly assembled link manifest.
Fields
Extraction(ExtractionError)
Object/rlib transport extraction failed.
ExtractionArtifactCount
Extractor returned a different number of exact inputs.
ExtractionArtifactOrder
Extractor did not preserve the exact caller order.
UnassignedCargoUnit
Placeholder unit IDs are forbidden after descriptor orchestration.
CargoUnitMismatch
A record’s embedded unit disagreed with the manifest-listed object.
Fields
expected: CargoUnitIdManifest unit.
DuplicateSourceEdge
Duplicate source-edge ID in one unit.
DuplicateComponentField
Duplicate component-field record in one unit.
Two extracted SharedState acquisition records reused one source edge.
ParsePayload
Embedded descriptor bytes are not JSON.
InvalidPayloadSchema
Payload wrapper schema does not match its fixed contract.
Fields
UnsupportedPayload
Payload format/version unsupported by this linker.
Fields
UnsupportedComponentDescriptor
Current component descriptor schema is not the expected v9 bridge.
MissingComponentDescriptorHash
Component bridge descriptor omitted its stored content hash.
UnsupportedHelperAbi
Standalone helper ABI is unsupported.
Fields
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.
SerializePayload
Re-encoding a parsed payload failed.
EmbeddedSemanticHashMismatch
Stored producer semantic hash did not match the payload.
PayloadDefinitionMismatch
Payload and defining record disagree.
Fields
InvalidIdentityAuthority
Producer claimed token identity rather than Rust relocation identity.
MissingSourceEdge
Payload listed no matching relocation edge.
SourceEdgeClaimedTwice
Two payloads claimed one source edge.
ComponentFieldIdOverflow
Component field claim count exceeded the canonical u32 ID space.
NonDenseComponentFieldClaims
Component field claims were not in dense field-ID order.
Fields
component: TransportDefinitionIdDefining component.
InvalidComponentFieldRoleShape
A field role and callback shape formed an impossible contract.
Fields
ComponentFieldRecordIdMismatch
The payload’s field record ID was not the deterministic ID for its fingerprint and behavior claim.
Fields
component: TransportDefinitionIdDefining component.
MissingComponentField
A payload listed no matching exact object record.
ComponentFieldClaimedTwice
Two payload claims selected one component-field object record.
ComponentFieldTargetMismatch
A field record relocated to a component other than the payload that claimed it.
Fields
expected: TransportDefinitionIdPayload’s defining component.
actual: TransportDefinitionIdRelocation-selected component.
SharedState acquisition claim count exceeded the canonical u32 ID space.
Component SharedState acquisition claims were not in dense store-ID order.
Descriptor SharedState stores and payload ownership claims were not one-to-one.
The embedded descriptor’s SharedState store table was malformed.
A payload claim did not use the deterministic source-edge ID for its component fingerprint and store ID.
A component payload listed no matching acquisition object record.
Two component payload claims selected one acquisition object record.
SharedState provider claim count exceeded the canonical u32 ID space.
Component provider-site claims were not in dense site-ID order.
Debug descriptor provider sites and transport claims were not one-to-one.
The embedded descriptor’s provider topology was malformed.
One provider claim did not describe the supported static topology.
More than one provider attempted to own the same direct child edge.
Provider transport and debug-descriptor metadata disagreed.
Provider claim selected a different direct component source edge.
Provider claim did not use its deterministic topology-bound source ID.
Provider claim listed no exact SharedState witness relocation.
More than one payload claim selected the provider’s witness record.
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.
Extracted SharedState acquisitions absent from every defining component payload.
Exact SharedState records returned by extraction were not preserved one-for-one in the corresponding resolved join.
A resolved acquisition selected a definition absent from the exact definition/payload join.
Trait Implementations§
Source§impl Debug for TransportLinkError
impl Debug for TransportLinkError
Source§impl Display for TransportLinkError
impl Display for TransportLinkError
Source§impl Error for TransportLinkError
impl Error for TransportLinkError
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<ExtractionError> for TransportLinkError
impl From<ExtractionError> for TransportLinkError
Source§fn from(source: ExtractionError) -> Self
fn from(source: ExtractionError) -> Self
Auto Trait Implementations§
impl !RefUnwindSafe for TransportLinkError
impl !UnwindSafe for TransportLinkError
impl Freeze for TransportLinkError
impl Send for TransportLinkError
impl Sync for TransportLinkError
impl Unpin for TransportLinkError
impl UnsafeUnpin for TransportLinkError
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