pub struct AbiAdapterContext { /* private fields */ }Expand description
Explicit migration policy and relocation-authoritative semantic identities.
Implementations§
Source§impl AbiAdapterContext
impl AbiAdapterContext
Sourcepub fn v1(producer: ProducerVersion, runtime_protocol: AbiVersion) -> Self
pub fn v1(producer: ProducerVersion, runtime_protocol: AbiVersion) -> Self
Construct a bridge targeting the complete canonical ABI v1 support matrix.
Legacy descriptors did not carry a runtime range. The bridge uses the caller-selected protocol as an exact range and declares no runtime capabilities for the accepted static-component subset.
Sourcepub fn from_transport_plan(
producer: ProducerVersion,
runtime_protocol: AbiVersion,
plan: &TransportLinkPlan,
) -> Result<Self, AbiAdapterError>
pub fn from_transport_plan( producer: ProducerVersion, runtime_protocol: AbiVersion, plan: &TransportLinkPlan, ) -> Result<Self, AbiAdapterError>
Construct a v1 adapter context from the identities carried by one exact relocation-linked transport plan.
No authored type/helper path is consulted. Each entry was joined to its
definition by (CargoUnitId, definition_record_id) during exact
object/rlib extraction.
Sourcepub fn insert_component_identity(
&mut self,
definition: TransportDefinitionId,
identity: ResolvedSemanticPath,
) -> Option<ResolvedSemanticPath>
pub fn insert_component_identity( &mut self, definition: TransportDefinitionId, identity: ResolvedSemanticPath, ) -> Option<ResolvedSemanticPath>
Register the semantic path selected for an exact component definition.
Sourcepub fn insert_helper_identity(
&mut self,
definition: TransportDefinitionId,
identity: ResolvedSemanticPath,
) -> Option<ResolvedSemanticPath>
pub fn insert_helper_identity( &mut self, definition: TransportDefinitionId, identity: ResolvedSemanticPath, ) -> Option<ResolvedSemanticPath>
Register the semantic path selected for an exact helper definition.
Sourcepub fn with_component_identity(
self,
definition: TransportDefinitionId,
identity: ResolvedSemanticPath,
) -> Self
pub fn with_component_identity( self, definition: TransportDefinitionId, identity: ResolvedSemanticPath, ) -> Self
Builder-style component identity registration.
Sourcepub fn with_helper_identity(
self,
definition: TransportDefinitionId,
identity: ResolvedSemanticPath,
) -> Self
pub fn with_helper_identity( self, definition: TransportDefinitionId, identity: ResolvedSemanticPath, ) -> Self
Builder-style helper identity registration.
Trait Implementations§
Source§impl Clone for AbiAdapterContext
impl Clone for AbiAdapterContext
Auto Trait Implementations§
impl Freeze for AbiAdapterContext
impl RefUnwindSafe for AbiAdapterContext
impl Send for AbiAdapterContext
impl Sync for AbiAdapterContext
impl Unpin for AbiAdapterContext
impl UnsafeUnpin for AbiAdapterContext
impl UnwindSafe for AbiAdapterContext
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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