Module tonic::codec

source ·
Expand description

Generic encoding and decoding.

This module contains the generic Codec, Encoder and Decoder traits and a protobuf codec based on prost.


  • A specialized buffer to decode gRPC messages from.
  • Struct used to configure which encodings are enabled on a server or channel.
  • A specialized buffer to encode gRPC messages into.
  • A Codec that implements application/grpc+proto via the prost library..
  • Streaming requests and responses.



  • Trait that knows how to encode and decode gRPC messages.
  • Decodes gRPC message types
  • Encodes gRPC message types