Skip to main content

Module codec

Module codec 

Available on crate features http and grpc only.
Expand description

Generic encoding and decoding.

This module contains the generic Codec, Encoder and Decoder traits.

Structs§

BufferSettings
Settings for how rama-grpc 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 client (channel).
EncodeBody
A specialized implementation of [Body] for encoding Result<Bytes, Status>.
EncodeBuf
A specialized buffer to encode gRPC messages into.
Streaming
Streaming requests and responses.

Enums§

CompressionEncoding
The compression encodings rama-grpc supports.
SingleMessageCompressionOverride
Controls compression behavior for individual messages within a stream.

Traits§

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