pub struct ProtobufWire;Expand description
Selected wire for Protocol Buffers application payloads.
Trait Implementations§
Source§impl Clone for ProtobufWire
impl Clone for ProtobufWire
Source§fn clone(&self) -> ProtobufWire
fn clone(&self) -> ProtobufWire
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 ProtobufWire
impl Debug for ProtobufWire
Source§impl<'a, T> DecodePayload<'a, T> for ProtobufWirewhere
T: ProtobufMappable,
impl<'a, T> DecodePayload<'a, T> for ProtobufWirewhere
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 Default for ProtobufWire
impl Default for ProtobufWire
Source§fn default() -> ProtobufWire
fn default() -> ProtobufWire
Returns the “default value” for a type. Read more
Source§impl<T> EncodePayload<T> for ProtobufWirewhere
T: ProtobufMappable,
impl<T> EncodePayload<T> for ProtobufWirewhere
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 PartialEq for ProtobufWire
impl PartialEq for ProtobufWire
Source§impl PayloadFormat for ProtobufWire
impl PayloadFormat for ProtobufWire
Source§impl<T> ReadDecodePayload<T> for ProtobufWirewhere
T: ProtobufMappable,
impl<T> ReadDecodePayload<T> for ProtobufWirewhere
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>
Source§impl UWire for ProtobufWire
impl UWire for ProtobufWire
Source§const WIRE_ID: WireIdentity = PROTOBUF_WIRE_ID
const WIRE_ID: WireIdentity = PROTOBUF_WIRE_ID
Stable identity for the full selected wire.
Source§const PAYLOAD_FAMILY_ID: WireIdentity = PROTOBUF_PAYLOAD_FAMILY_ID
const PAYLOAD_FAMILY_ID: WireIdentity = PROTOBUF_PAYLOAD_FAMILY_ID
Payload operation family supported by this selected wire.
Source§const METADATA_LAYOUT_ID: WireIdentity = NATIVE_PREFIX_METADATA_LAYOUT_ID
const METADATA_LAYOUT_ID: WireIdentity = NATIVE_PREFIX_METADATA_LAYOUT_ID
Metadata byte layout used by this selected wire.
Source§const FORMAT_VERSION: u16 = 1u16
const FORMAT_VERSION: u16 = 1u16
Metadata byte-format version supported by this selected wire.
Source§fn wire_compatibility(actual: &WireIdentityRef) -> WireCompatibility
fn wire_compatibility(actual: &WireIdentityRef) -> WireCompatibility
Checks selected-wire compatibility before public frame exposure.
Source§fn payload_family_compatibility(actual: &WireIdentityRef) -> WireCompatibility
fn payload_family_compatibility(actual: &WireIdentityRef) -> WireCompatibility
Checks payload-family compatibility before public frame exposure.
Source§fn metadata_context() -> UWireMetadataContextwhere
Self: Sized,
fn metadata_context() -> UWireMetadataContextwhere
Self: Sized,
Returns the selected-wire metadata context consumed by metadata codecs.
Source§impl<T> UWirePayload<T> for ProtobufWirewhere
T: ProtobufMappable,
impl<T> UWirePayload<T> for ProtobufWirewhere
T: ProtobufMappable,
Source§type Codec = ProtobufPayload
type Codec = ProtobufPayload
Concrete payload codec used by this selected wire for
T.impl Copy for ProtobufWire
impl Eq for ProtobufWire
impl StructuralPartialEq for ProtobufWire
Auto Trait Implementations§
impl Freeze for ProtobufWire
impl RefUnwindSafe for ProtobufWire
impl Send for ProtobufWire
impl Sync for ProtobufWire
impl Unpin for ProtobufWire
impl UnwindSafe for ProtobufWire
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<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.