Module 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.

Structs§

BufferSettings
Settings for how tonic allocates and grows buffers.
DecodeBuf
A specialized buffer to decode gRPC messages from.
EnabledCompressionEncodings
Struct used to configure which encodings are enabled on a server or channel.
EncodeBody
A specialized implementation of Body for encoding Result<Bytes, Status>.
EncodeBuf
A specialized buffer to encode gRPC messages into.
ProstCodecprost
A Codec that implements application/grpc+proto via the prost library..
Streaming
Streaming requests and responses.

Enums§

CompressionEncoding
The compression encodings Tonic supports.

Traits§

Codec
Trait that knows how to encode and decode gRPC messages.
Decoder
Decodes gRPC message types
Encoder
Encodes gRPC message types