Module kafka_protocol::protocol
source · Expand description
Raw types and utilities for use with the Kafka protocol.
Most types are used internally in encoding/decoding, and are not required by typical use cases for interacting with the protocol. However, types can be used for decoding partial messages, or rewriting parts of an encoded message.
Modules
Raw types of the Kafka protocol, as defined by the protocol specification.
Structs
An error representing any fault while decoding a message, usually when the buffer is incorrectly
sized or otherwise invalid for the decoded message.
An error representing any fault while encoding a message, usually when a message in an invalid
state is attempted to be encoded.
The range of versions (min, max) allowed for agiven message.
Traits
A decodable message.
An encodable message.
Every message has a set of versions valid for a given header version.
An API request or response.
An API request.
Type Definitions
A string type backed by
bytes::Bytes
.