Skip to main content

ApiVersionsLookup

Trait ApiVersionsLookup 

Source
pub trait ApiVersionsLookup {
    // Required method
    fn highest_supported_version(
        &self,
        api_key: i16,
        max_supported: i16,
    ) -> Option<i16>;
}
Expand description

Common capability lookup implemented by fixed and flexible ApiVersions responses.

Required Methods§

Source

fn highest_supported_version( &self, api_key: i16, max_supported: i16, ) -> Option<i16>

Returns the highest broker-supported version not exceeding the client limit.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§