Skip to main content

Crate protobuf_tonic

Crate protobuf_tonic 

Source
Expand description

A tonic Codec for pbrs messages using Parse and Serialize.

Keeps tonic transport and middleware while using pbrs-generated messages. Code that requires prost::Message needs an adapter.

Modules§

hello
Generated helloworld types and Greeter stubs.

Structs§

ConversionError
Failure while converting between wire-compatible prost and pbrs messages.
ProtobufCodec
tonic Codec using pbrs Serialize / Parse (not prost::Message).
ProtobufDecoder
Decoder half of ProtobufCodec.
ProtobufEncoder
Encoder half of ProtobufCodec.

Functions§

pbrs_to_prost
Convert a pbrs message to its wire-compatible prost representation.
prost_to_pbrs
Convert a prost message to its wire-compatible pbrs representation.