Expand description
API version resolution + header version selection.
Kafka clients negotiate the highest mutually-supported API version per request type with the broker; the resolved version then determines whether the request/response uses the flexible (varint-prefixed, tagged-fields) header layout or the older fixed-width one.
Re-exports§
pub use self::error::UnsupportedFieldVersion;pub use self::error::UnsupportedVersion;pub use crate::generated::ApiInfo;pub use crate::generated::ApiKey;pub use crate::generated::client_api_info;
Modules§
- error
- Error types for
crate::version.
Structs§
- ApiVersion
Range - A contiguous range of supported API versions, inclusive on both ends.
Constants§
- API_
VERSIONS_ KEY - Kafka
ApiVersionsAPI key (18). Special-cased by KIP-511 for response header version selection.
Functions§
- request_
header_ version - Request header version for
(api_key, api_version). - resolve_
api_ version - Resolve the highest API version supported by both client and broker.
- response_
header_ version - Response header version for
(api_key, api_version).
Type Aliases§
- Result
- Result alias for version operations.