Skip to main content

Module version

Module version 

Source
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§

ApiVersionRange
A contiguous range of supported API versions, inclusive on both ends.

Constants§

API_VERSIONS_KEY
Kafka ApiVersions API 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.