Module kafka_protocol::protocol
source · Expand description
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
- Utilities for working with the
bytes
crate. - 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
- Every protocol item implements [
derive_builder::Builder
], which can be created usingDefault::default
or retrieved via this trait. - 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 Aliases
- A string type backed by
bytes::Bytes
.