#[non_exhaustive]pub struct UnsupportedVersion {
pub api_key: i16,
pub version: i16,
}Expand description
API version negotiation produced no mutually-supported version, or a generated decoder rejected an unknown version.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.api_key: i16Kafka API key (numeric form).
version: i16The version that was rejected.
Implementations§
Trait Implementations§
Source§impl Clone for UnsupportedVersion
impl Clone for UnsupportedVersion
Source§fn clone(&self) -> UnsupportedVersion
fn clone(&self) -> UnsupportedVersion
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 moreimpl Copy for UnsupportedVersion
Source§impl Debug for UnsupportedVersion
impl Debug for UnsupportedVersion
Source§impl Display for UnsupportedVersion
impl Display for UnsupportedVersion
impl Eq for UnsupportedVersion
Source§impl Error for UnsupportedVersion
impl Error for UnsupportedVersion
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<UnsupportedVersion> for ProtocolError
impl From<UnsupportedVersion> for ProtocolError
Source§fn from(source: UnsupportedVersion) -> Self
fn from(source: UnsupportedVersion) -> Self
Converts to this type from the input type.
Source§impl PartialEq for UnsupportedVersion
impl PartialEq for UnsupportedVersion
Source§fn eq(&self, other: &UnsupportedVersion) -> bool
fn eq(&self, other: &UnsupportedVersion) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for UnsupportedVersion
Auto Trait Implementations§
impl Freeze for UnsupportedVersion
impl RefUnwindSafe for UnsupportedVersion
impl Send for UnsupportedVersion
impl Sync for UnsupportedVersion
impl Unpin for UnsupportedVersion
impl UnsafeUnpin for UnsupportedVersion
impl UnwindSafe for UnsupportedVersion
Blanket Implementations§
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