#[non_exhaustive]pub struct KRaftVersionRecord {
pub version: i16,
pub k_raft_version: i16,
pub unknown_tagged_fields: BTreeMap<i32, Bytes>,
}
Expand description
Valid versions: 0
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.version: i16
The version of the kraft version record
Supported API versions: 0
k_raft_version: i16
The kraft protocol version
Supported API versions: 0
unknown_tagged_fields: BTreeMap<i32, Bytes>
Other tagged fields
Implementations§
Source§impl KRaftVersionRecord
impl KRaftVersionRecord
Sourcepub fn with_version(self, value: i16) -> Self
pub fn with_version(self, value: i16) -> Self
Sets version
to the passed value.
The version of the kraft version record
Supported API versions: 0
Sourcepub fn with_k_raft_version(self, value: i16) -> Self
pub fn with_k_raft_version(self, value: i16) -> Self
Sets k_raft_version
to the passed value.
The kraft protocol version
Supported API versions: 0
Sourcepub fn with_unknown_tagged_fields(self, value: BTreeMap<i32, Bytes>) -> Self
pub fn with_unknown_tagged_fields(self, value: BTreeMap<i32, Bytes>) -> Self
Sets unknown_tagged_fields to the passed value.
Sourcepub fn with_unknown_tagged_field(self, key: i32, value: Bytes) -> Self
pub fn with_unknown_tagged_field(self, key: i32, value: Bytes) -> Self
Inserts an entry into unknown_tagged_fields.
Trait Implementations§
Source§impl Clone for KRaftVersionRecord
impl Clone for KRaftVersionRecord
Source§fn clone(&self) -> KRaftVersionRecord
fn clone(&self) -> KRaftVersionRecord
Returns a copy of the value. Read more
1.0.0 · 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 KRaftVersionRecord
impl Debug for KRaftVersionRecord
Source§impl Decodable for KRaftVersionRecord
impl Decodable for KRaftVersionRecord
Source§impl Default for KRaftVersionRecord
impl Default for KRaftVersionRecord
Source§impl Encodable for KRaftVersionRecord
impl Encodable for KRaftVersionRecord
Source§impl Message for KRaftVersionRecord
impl Message for KRaftVersionRecord
Source§const VERSIONS: VersionRange
const VERSIONS: VersionRange
The valid versions for this message.
Source§const DEPRECATED_VERSIONS: Option<VersionRange> = None
const DEPRECATED_VERSIONS: Option<VersionRange> = None
The deprecated versions for this message.
Source§impl PartialEq for KRaftVersionRecord
impl PartialEq for KRaftVersionRecord
impl StructuralPartialEq for KRaftVersionRecord
Auto Trait Implementations§
impl Freeze for KRaftVersionRecord
impl RefUnwindSafe for KRaftVersionRecord
impl Send for KRaftVersionRecord
impl Sync for KRaftVersionRecord
impl Unpin for KRaftVersionRecord
impl UnwindSafe for KRaftVersionRecord
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