pub struct PreparedOwnedFrame { /* private fields */ }Expand description
Prepared owned frame passed from the adapter to an owned core.
Implementations§
Source§impl PreparedOwnedFrame
impl PreparedOwnedFrame
Sourcepub fn from_validated<W, C>(
frame: UOwnedFrame,
codec: &C,
) -> Result<Self, UStatus>where
W: UWire,
C: UWireMetadataCodecFor<W>,
pub fn from_validated<W, C>(
frame: UOwnedFrame,
codec: &C,
) -> Result<Self, UStatus>where
W: UWire,
C: UWireMetadataCodecFor<W>,
Encodes validated owned frame metadata for a selected wire.
§Errors
Returns an error if selected-wire metadata encoding fails.
Sourcepub fn metadata(&self) -> &UFrameMetadata
pub fn metadata(&self) -> &UFrameMetadata
Returns decoded frame metadata.
Sourcepub fn encoded_metadata(&self) -> &[u8] ⓘ
pub fn encoded_metadata(&self) -> &[u8] ⓘ
Returns selected-wire encoded metadata bytes.
Sourcepub fn into_parts(self) -> (UFrameMetadata, Vec<u8>, Option<Bytes>)
pub fn into_parts(self) -> (UFrameMetadata, Vec<u8>, Option<Bytes>)
Consumes this frame and returns its parts.
Trait Implementations§
Source§impl Clone for PreparedOwnedFrame
impl Clone for PreparedOwnedFrame
Source§fn clone(&self) -> PreparedOwnedFrame
fn clone(&self) -> PreparedOwnedFrame
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 PreparedOwnedFrame
impl Debug for PreparedOwnedFrame
Source§impl PartialEq for PreparedOwnedFrame
impl PartialEq for PreparedOwnedFrame
impl StructuralPartialEq for PreparedOwnedFrame
Auto Trait Implementations§
impl !Freeze for PreparedOwnedFrame
impl RefUnwindSafe for PreparedOwnedFrame
impl Send for PreparedOwnedFrame
impl Sync for PreparedOwnedFrame
impl Unpin for PreparedOwnedFrame
impl UnwindSafe for PreparedOwnedFrame
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.