Module tonic::codec[][src]

Generic encoding and decoding.

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

Structs

DecodeBuf

A specialized buffer to decode gRPC messages from.

EncodeBuf

A specialized buffer to encode gRPC messages into.

ProstCodec

A Codec that implements application/grpc+proto via the prost library..

Streaming

Streaming requests and responses.

Traits

Codec

Trait that knows how to encode and decode gRPC messages.

Decoder

Decodes gRPC message types

Encoder

Encodes gRPC message types