pub struct KRaftVersionFeature {
pub min_supported_version: i16,
pub max_supported_version: i16,
pub _unknown_tagged_fields: Vec<RawTaggedField>,
}Fields§
§min_supported_version: i16The minimum supported KRaft protocol version.
max_supported_version: i16The maximum supported KRaft protocol version.
_unknown_tagged_fields: Vec<RawTaggedField>Implementations§
Source§impl KRaftVersionFeature
impl KRaftVersionFeature
pub fn with_min_supported_version(self, value: i16) -> Self
pub fn with_max_supported_version(self, value: i16) -> Self
pub fn read(buf: &mut Bytes, _version: i16) -> Result<Self>
pub fn write(&self, buf: &mut BytesMut, _version: i16) -> Result<()>
pub fn encoded_len(&self, _version: i16) -> Result<usize>
Trait Implementations§
Source§impl Clone for KRaftVersionFeature
impl Clone for KRaftVersionFeature
Source§fn clone(&self) -> KRaftVersionFeature
fn clone(&self) -> KRaftVersionFeature
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 KRaftVersionFeature
impl Debug for KRaftVersionFeature
Source§impl Default for KRaftVersionFeature
impl Default for KRaftVersionFeature
Source§impl PartialEq for KRaftVersionFeature
impl PartialEq for KRaftVersionFeature
Source§fn eq(&self, other: &KRaftVersionFeature) -> bool
fn eq(&self, other: &KRaftVersionFeature) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for KRaftVersionFeature
Auto Trait Implementations§
impl Freeze for KRaftVersionFeature
impl RefUnwindSafe for KRaftVersionFeature
impl Send for KRaftVersionFeature
impl Sync for KRaftVersionFeature
impl Unpin for KRaftVersionFeature
impl UnsafeUnpin for KRaftVersionFeature
impl UnwindSafe for KRaftVersionFeature
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