pub struct RawBytes;Expand description
Built-in raw byte payload codec.
Implementations§
Trait Implementations§
Source§impl DecodePayload<'_, Bytes> for RawBytes
impl DecodePayload<'_, Bytes> for RawBytes
Source§fn decode_payload(src: &[u8]) -> Result<Bytes, UWireError>
fn decode_payload(src: &[u8]) -> Result<Bytes, UWireError>
Decodes
T from payload bytes. Read moreSource§impl DecodePayload<'_, Vec<u8>> for RawBytes
impl DecodePayload<'_, Vec<u8>> for RawBytes
Source§fn decode_payload(src: &[u8]) -> Result<Vec<u8>, UWireError>
fn decode_payload(src: &[u8]) -> Result<Vec<u8>, UWireError>
Decodes
T from payload bytes. Read moreSource§impl<'a> DecodePayload<'a, &'a [u8]> for RawBytes
impl<'a> DecodePayload<'a, &'a [u8]> for RawBytes
Source§fn decode_payload(src: &'a [u8]) -> Result<&'a [u8], UWireError>
fn decode_payload(src: &'a [u8]) -> Result<&'a [u8], UWireError>
Decodes
T from payload bytes. Read moreSource§impl EncodePayload<[u8]> for RawBytes
impl EncodePayload<[u8]> for RawBytes
Source§fn payload_layout(value: &[u8]) -> Result<PayloadLayout, UWireError>
fn payload_layout(value: &[u8]) -> Result<PayloadLayout, UWireError>
Returns the exact payload layout required to encode
value. Read moreSource§fn encode_payload(value: &[u8], dst: &mut [u8]) -> Result<(), UWireError>
fn encode_payload(value: &[u8], dst: &mut [u8]) -> Result<(), UWireError>
Source§fn encode_payload_owned(value: &T) -> Result<Bytes, UWireError>
fn encode_payload_owned(value: &T) -> Result<Bytes, UWireError>
Encodes
value into owned bytes. Read moreSource§impl PayloadFormat for RawBytes
impl PayloadFormat for RawBytes
Source§impl ReadDecodePayload<Bytes> for RawBytes
impl ReadDecodePayload<Bytes> for RawBytes
Source§fn decode_payload_from_reader<R: Read>(
reader: R,
payload_len: usize,
) -> Result<Bytes, UWireError>
fn decode_payload_from_reader<R: Read>( reader: R, payload_len: usize, ) -> Result<Bytes, UWireError>
Source§impl ReadDecodePayload<Vec<u8>> for RawBytes
impl ReadDecodePayload<Vec<u8>> for RawBytes
Source§fn decode_payload_from_reader<R: Read>(
reader: R,
payload_len: usize,
) -> Result<Vec<u8>, UWireError>
fn decode_payload_from_reader<R: Read>( reader: R, payload_len: usize, ) -> Result<Vec<u8>, UWireError>
impl BytePayloadCodec for RawBytes
Auto Trait Implementations§
impl Freeze for RawBytes
impl RefUnwindSafe for RawBytes
impl Send for RawBytes
impl Sync for RawBytes
impl Unpin for RawBytes
impl UnwindSafe for RawBytes
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
§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<F> PayloadCodec for Fwhere
F: PayloadFormat,
impl<F> PayloadCodec for Fwhere
F: PayloadFormat,
Source§fn codec_name() -> &'static str
fn codec_name() -> &'static str
Stable codec name for logs, diagnostics, and configuration.
Source§fn payload_encoding() -> PayloadEncoding
fn payload_encoding() -> PayloadEncoding
Payload encoding metadata written into frames that use this codec.
Source§fn verify_encoding(actual: Option<&PayloadEncoding>) -> Result<(), UWireError>
fn verify_encoding(actual: Option<&PayloadEncoding>) -> Result<(), UWireError>
Verifies frame encoding metadata against this codec. Read more
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.