pub struct ApiVersionTable { /* private fields */ }Implementations§
Source§impl ApiVersionTable
impl ApiVersionTable
Sourcepub fn from_entries(entries: impl IntoIterator<Item = (i16, i16, i16)>) -> Self
pub fn from_entries(entries: impl IntoIterator<Item = (i16, i16, i16)>) -> Self
Build from a sequence of (api_key, broker_min, broker_max) tuples.
Used when seeding the table from a decoded ApiVersionsResponse.
Sourcepub fn negotiate<R: ProtocolRequest>(&self) -> Result<i16, ClientError>
pub fn negotiate<R: ProtocolRequest>(&self) -> Result<i16, ClientError>
Highest version both sides support for R, or
ClientError::IncompatibleVersion if the ranges don’t overlap.
Trait Implementations§
Source§impl Clone for ApiVersionTable
impl Clone for ApiVersionTable
Source§fn clone(&self) -> ApiVersionTable
fn clone(&self) -> ApiVersionTable
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ApiVersionTable
impl Debug for ApiVersionTable
Source§impl Default for ApiVersionTable
impl Default for ApiVersionTable
Source§fn default() -> ApiVersionTable
fn default() -> ApiVersionTable
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ApiVersionTable
impl RefUnwindSafe for ApiVersionTable
impl Send for ApiVersionTable
impl Sync for ApiVersionTable
impl Unpin for ApiVersionTable
impl UnsafeUnpin for ApiVersionTable
impl UnwindSafe for ApiVersionTable
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more