#[non_exhaustive]pub struct LeaderChangeMessage {
    pub version: i16,
    pub leader_id: BrokerId,
    pub voters: Vec<Voter>,
    pub granting_voters: Vec<Voter>,
    pub unknown_tagged_fields: BTreeMap<i32, Bytes>,
}Expand description
Valid versions: 0
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.version: i16The version of the leader change message
Supported API versions: 0
leader_id: BrokerIdThe ID of the newly elected leader
Supported API versions: 0
voters: Vec<Voter>The set of voters in the quorum for this epoch
Supported API versions: 0
granting_voters: Vec<Voter>The voters who voted for the leader at the time of election
Supported API versions: 0
unknown_tagged_fields: BTreeMap<i32, Bytes>Other tagged fields
Implementations§
source§impl LeaderChangeMessage
 
impl LeaderChangeMessage
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 leader change message
Supported API versions: 0
sourcepub fn with_leader_id(self, value: BrokerId) -> Self
 
pub fn with_leader_id(self, value: BrokerId) -> Self
Sets leader_id to the passed value.
The ID of the newly elected leader
Supported API versions: 0
sourcepub fn with_voters(self, value: Vec<Voter>) -> Self
 
pub fn with_voters(self, value: Vec<Voter>) -> Self
Sets voters to the passed value.
The set of voters in the quorum for this epoch
Supported API versions: 0
sourcepub fn with_granting_voters(self, value: Vec<Voter>) -> Self
 
pub fn with_granting_voters(self, value: Vec<Voter>) -> Self
Sets granting_voters to the passed value.
The voters who voted for the leader at the time of election
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 LeaderChangeMessage
 
impl Clone for LeaderChangeMessage
source§fn clone(&self) -> LeaderChangeMessage
 
fn clone(&self) -> LeaderChangeMessage
1.0.0 · source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for LeaderChangeMessage
 
impl Debug for LeaderChangeMessage
source§impl Decodable for LeaderChangeMessage
 
impl Decodable for LeaderChangeMessage
source§impl Default for LeaderChangeMessage
 
impl Default for LeaderChangeMessage
source§impl Encodable for LeaderChangeMessage
 
impl Encodable for LeaderChangeMessage
source§impl Message for LeaderChangeMessage
 
impl Message for LeaderChangeMessage
source§const VERSIONS: VersionRange = _
 
const VERSIONS: VersionRange = _
source§const DEPRECATED_VERSIONS: Option<VersionRange> = None
 
const DEPRECATED_VERSIONS: Option<VersionRange> = None
source§impl PartialEq for LeaderChangeMessage
 
impl PartialEq for LeaderChangeMessage
impl StructuralPartialEq for LeaderChangeMessage
Auto Trait Implementations§
impl Freeze for LeaderChangeMessage
impl RefUnwindSafe for LeaderChangeMessage
impl Send for LeaderChangeMessage
impl Sync for LeaderChangeMessage
impl Unpin for LeaderChangeMessage
impl UnwindSafe for LeaderChangeMessage
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
source§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
 
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)