pub struct UWireMetadataContext {
pub wire_id: WireIdentity,
pub payload_family_id: WireIdentity,
pub metadata_layout_id: WireIdentity,
pub format_version: u16,
/* private fields */
}Expand description
Selected-wire metadata context consumed by metadata codecs.
Fields§
§wire_id: WireIdentityStable identity for the full selected wire.
payload_family_id: WireIdentityPayload operation family supported by this selected wire.
metadata_layout_id: WireIdentityMetadata byte layout used by this selected wire.
format_version: u16Metadata byte-format version supported by this selected wire.
Implementations§
Source§impl UWireMetadataContext
impl UWireMetadataContext
Sourcepub fn from_wire<W>() -> Selfwhere
W: UWire,
pub fn from_wire<W>() -> Selfwhere
W: UWire,
Builds a metadata context for a selected wire marker type.
Sourcepub fn new_exact(
wire_id: WireIdentity,
payload_family_id: WireIdentity,
metadata_layout_id: WireIdentity,
format_version: u16,
) -> Self
pub fn new_exact( wire_id: WireIdentity, payload_family_id: WireIdentity, metadata_layout_id: WireIdentity, format_version: u16, ) -> Self
Builds a metadata context with exact identity matching.
Sourcepub fn with_metadata_layout(self, metadata_layout_id: WireIdentity) -> Self
pub fn with_metadata_layout(self, metadata_layout_id: WireIdentity) -> Self
Returns this context with the metadata layout identity replaced.
Metadata codecs overlay their own profile identity so the layout id on the wire always names the codec’s byte profile, independent of the legacy per-wire declaration.
Sourcepub fn wire_compatibility(&self, actual: &WireIdentityRef) -> WireCompatibility
pub fn wire_compatibility(&self, actual: &WireIdentityRef) -> WireCompatibility
Checks selected-wire compatibility before public frame exposure.
Sourcepub fn payload_family_compatibility(
&self,
actual: &WireIdentityRef,
) -> WireCompatibility
pub fn payload_family_compatibility( &self, actual: &WireIdentityRef, ) -> WireCompatibility
Checks payload-family compatibility before public frame exposure.
Trait Implementations§
Source§impl Clone for UWireMetadataContext
impl Clone for UWireMetadataContext
Source§fn clone(&self) -> UWireMetadataContext
fn clone(&self) -> UWireMetadataContext
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UWireMetadataContext
impl Debug for UWireMetadataContext
impl Copy for UWireMetadataContext
Auto Trait Implementations§
impl Freeze for UWireMetadataContext
impl RefUnwindSafe for UWireMetadataContext
impl Send for UWireMetadataContext
impl Sync for UWireMetadataContext
impl Unpin for UWireMetadataContext
impl UnwindSafe for UWireMetadataContext
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<TCore> UWithNativePrefixWire for TCore
impl<TCore> UWithNativePrefixWire for TCore
Source§fn into_native_prefix_wire_transport<W>(
self,
wire: W,
) -> UWireTransport<TCore, W, NativePrefixFrameMetadataCodec>where
W: UWire,
fn into_native_prefix_wire_transport<W>(
self,
wire: W,
) -> UWireTransport<TCore, W, NativePrefixFrameMetadataCodec>where
W: UWire,
Wraps this core with an external or custom selected wire using canonical metadata.
Source§fn into_protobuf_transport(
self,
) -> UWireTransport<TCore, ProtobufWire, NativePrefixFrameMetadataCodec>
fn into_protobuf_transport( self, ) -> UWireTransport<TCore, ProtobufWire, NativePrefixFrameMetadataCodec>
Wraps this core with the Protocol Buffers selected-wire profile.
Source§fn into_stable_container_transport(
self,
) -> UWireTransport<TCore, StableContainerWireFormat, NativePrefixFrameMetadataCodec>
fn into_stable_container_transport( self, ) -> UWireTransport<TCore, StableContainerWireFormat, NativePrefixFrameMetadataCodec>
Wraps this core with the stable-container selected-wire profile.