Skip to main content

resolve_api_version

Function resolve_api_version 

Source
pub fn resolve_api_version(
    api_key: i16,
    broker_range: ApiVersionRange,
) -> Option<i16>
Expand description

Resolve the highest API version supported by both client and broker.

Returns None when the broker range is empty (min_version > max_version), when api_key is not a known API key, or when the client and broker ranges are disjoint.