pub struct LeaderChangeMessage {
pub version: i16,
pub leader_id: i32,
pub voters: Vec<Voter>,
pub granting_voters: Vec<Voter>,
pub _unknown_tagged_fields: Vec<RawTaggedField>,
}Expand description
LeaderChangeMessage, version 1.
Fields§
§version: i16The version of the leader change message.
leader_id: i32The ID of the newly elected leader.
voters: Vec<Voter>The set of voters in the quorum for this epoch.
granting_voters: Vec<Voter>The voters who voted for the leader at the time of election.
_unknown_tagged_fields: Vec<RawTaggedField>Unknown tagged fields.
Implementations§
Trait Implementations§
Source§impl ApiMessage for LeaderChangeMessage
impl ApiMessage for LeaderChangeMessage
Source§impl Clone for LeaderChangeMessage
impl Clone for LeaderChangeMessage
Source§fn clone(&self) -> LeaderChangeMessage
fn clone(&self) -> LeaderChangeMessage
Returns a duplicate 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 LeaderChangeMessage
impl Debug for LeaderChangeMessage
Source§impl Default for LeaderChangeMessage
impl Default for LeaderChangeMessage
Source§impl<'de> Deserialize<'de> for LeaderChangeMessage
impl<'de> Deserialize<'de> for LeaderChangeMessage
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for LeaderChangeMessage
impl PartialEq for LeaderChangeMessage
Source§impl Readable for LeaderChangeMessage
impl Readable for LeaderChangeMessage
Source§impl Serialize for LeaderChangeMessage
impl Serialize for LeaderChangeMessage
Source§impl Writable for LeaderChangeMessage
impl Writable for LeaderChangeMessage
impl Data 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
Mutably borrows from an owned value. Read more