pub struct ProtobufAnyPayload;Expand description
Protocol Buffers google.protobuf.Any application payload codec.
Implementations§
Source§impl ProtobufAnyPayload
impl ProtobufAnyPayload
Sourcepub fn encoding() -> PayloadEncoding
pub fn encoding() -> PayloadEncoding
Returns the protobuf-Any payload encoding metadata.
Trait Implementations§
Source§impl Debug for ProtobufAnyPayload
impl Debug for ProtobufAnyPayload
Source§impl<'a, T> DecodePayload<'a, T> for ProtobufAnyPayloadwhere
T: ProtobufMappable,
impl<'a, T> DecodePayload<'a, T> for ProtobufAnyPayloadwhere
T: ProtobufMappable,
Source§fn decode_payload(src: &'a [u8]) -> Result<T, UWireError>
fn decode_payload(src: &'a [u8]) -> Result<T, UWireError>
Decodes
T from payload bytes. Read moreSource§impl<T> EncodePayload<T> for ProtobufAnyPayloadwhere
T: ProtobufMappable,
impl<T> EncodePayload<T> for ProtobufAnyPayloadwhere
T: ProtobufMappable,
Source§fn payload_layout(value: &T) -> Result<PayloadLayout, UWireError>
fn payload_layout(value: &T) -> Result<PayloadLayout, UWireError>
Returns the exact payload layout required to encode
value. Read moreSource§fn encode_payload(value: &T, dst: &mut [u8]) -> Result<(), UWireError>
fn encode_payload(value: &T, 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 ProtobufAnyPayload
impl PayloadFormat for ProtobufAnyPayload
Source§impl<T> ReadDecodePayload<T> for ProtobufAnyPayloadwhere
T: ProtobufMappable,
impl<T> ReadDecodePayload<T> for ProtobufAnyPayloadwhere
T: ProtobufMappable,
Source§fn decode_payload_from_reader<R: Read>(
reader: R,
payload_len: usize,
) -> Result<T, UWireError>
fn decode_payload_from_reader<R: Read>( reader: R, payload_len: usize, ) -> Result<T, UWireError>
Auto Trait Implementations§
impl Freeze for ProtobufAnyPayload
impl RefUnwindSafe for ProtobufAnyPayload
impl Send for ProtobufAnyPayload
impl Sync for ProtobufAnyPayload
impl Unpin for ProtobufAnyPayload
impl UnwindSafe for ProtobufAnyPayload
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.