pub struct NativePrefixFrameMetadataCodec;Expand description
Canonical native-prefix metadata codec carrying the clean UFrame metadata field block.
This codec serializes UFrameMetadata directly using the canonical
field block defined in crate::frame::codec — no protobuf, no legacy
UAttributes projection, full fidelity for open payload encodings. The
outer native-prefix framing (magic, metadata layout id, format version,
wire id, payload family id) is identical to the legacy codec so that
transports can carry either block behind the same placement layouts.
Trait Implementations§
Source§impl Clone for NativePrefixFrameMetadataCodec
impl Clone for NativePrefixFrameMetadataCodec
Source§fn clone(&self) -> NativePrefixFrameMetadataCodec
fn clone(&self) -> NativePrefixFrameMetadataCodec
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 Default for NativePrefixFrameMetadataCodec
impl Default for NativePrefixFrameMetadataCodec
Source§fn default() -> NativePrefixFrameMetadataCodec
fn default() -> NativePrefixFrameMetadataCodec
Returns the “default value” for a type. Read more
Source§impl PartialEq for NativePrefixFrameMetadataCodec
impl PartialEq for NativePrefixFrameMetadataCodec
Source§fn eq(&self, other: &NativePrefixFrameMetadataCodec) -> bool
fn eq(&self, other: &NativePrefixFrameMetadataCodec) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl UWireMetadataCodec for NativePrefixFrameMetadataCodec
impl UWireMetadataCodec for NativePrefixFrameMetadataCodec
Source§const METADATA_LAYOUT_ID: WireIdentity = UFRAME_FIELDS_METADATA_LAYOUT_ID
const METADATA_LAYOUT_ID: WireIdentity = UFRAME_FIELDS_METADATA_LAYOUT_ID
Metadata byte-profile identity this codec writes and accepts. Read more
Source§fn encode_frame_metadata(
&self,
context: UWireMetadataContext,
metadata: &UFrameMetadata,
) -> Result<Vec<u8>, UWireMetadataError>
fn encode_frame_metadata( &self, context: UWireMetadataContext, metadata: &UFrameMetadata, ) -> Result<Vec<u8>, UWireMetadataError>
Encodes native frame metadata for the selected-wire context. Read more
Source§fn decode_frame_metadata(
&self,
context: UWireMetadataContext,
src: &[u8],
) -> Result<UFrameMetadata, UWireMetadataError>
fn decode_frame_metadata( &self, context: UWireMetadataContext, src: &[u8], ) -> Result<UFrameMetadata, UWireMetadataError>
Decodes and validates native frame metadata for the selected-wire context. Read more
impl Copy for NativePrefixFrameMetadataCodec
impl Eq for NativePrefixFrameMetadataCodec
impl StructuralPartialEq for NativePrefixFrameMetadataCodec
impl<W> UWireMetadataCodecFor<W> for NativePrefixFrameMetadataCodecwhere
W: UWire,
Auto Trait Implementations§
impl Freeze for NativePrefixFrameMetadataCodec
impl RefUnwindSafe for NativePrefixFrameMetadataCodec
impl Send for NativePrefixFrameMetadataCodec
impl Sync for NativePrefixFrameMetadataCodec
impl Unpin for NativePrefixFrameMetadataCodec
impl UnwindSafe for NativePrefixFrameMetadataCodec
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.