Struct fluvio_socket::Versions
source · pub struct Versions { /* private fields */ }Expand description
wrap around versions
Implementations§
source§impl Versions
impl Versions
pub fn new(version_response: ApiVersionsResponse) -> Self
sourcepub fn platform_version(&self) -> &Version
pub fn platform_version(&self) -> &Version
Tells the platform version reported by the SC
The platform version refers to the value in the VERSION file at the time the SC was compiled.
sourcepub fn lookup_version<R: Request>(&self) -> Option<i16>
pub fn lookup_version<R: Request>(&self) -> Option<i16>
Given an API key, it returns maximum compatible version. None if not found