Struct fluvio_socket::Versions
source · pub struct Versions { /* private fields */ }Expand description
wrap around versions
Implementations
sourceimpl 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
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Versions
impl Send for Versions
impl Sync for Versions
impl Unpin for Versions
impl UnwindSafe for Versions
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more