pub struct LeaderAndIsrPartitionState {Show 13 fields
pub topic_name: TopicName,
pub partition_index: i32,
pub controller_epoch: i32,
pub leader: BrokerId,
pub leader_epoch: i32,
pub isr: Vec<BrokerId>,
pub zk_version: i32,
pub replicas: Vec<BrokerId>,
pub adding_replicas: Vec<BrokerId>,
pub removing_replicas: Vec<BrokerId>,
pub is_new: bool,
pub leader_recovery_state: i8,
pub unknown_tagged_fields: BTreeMap<i32, Vec<u8>>,
}
Expand description
Valid versions: 0-6
Fields§
§topic_name: TopicName
The topic name. This is only present in v0 or v1.
Supported API versions: 0-1
partition_index: i32
The partition index.
Supported API versions: 0-6
controller_epoch: i32
The controller epoch.
Supported API versions: 0-6
leader: BrokerId
The broker ID of the leader.
Supported API versions: 0-6
leader_epoch: i32
The leader epoch.
Supported API versions: 0-6
isr: Vec<BrokerId>
The in-sync replica IDs.
Supported API versions: 0-6
zk_version: i32
The ZooKeeper version.
Supported API versions: 0-6
replicas: Vec<BrokerId>
The replica IDs.
Supported API versions: 0-6
adding_replicas: Vec<BrokerId>
The replica IDs that we are adding this partition to, or null if no replicas are being added.
Supported API versions: 3-6
removing_replicas: Vec<BrokerId>
The replica IDs that we are removing this partition from, or null if no replicas are being removed.
Supported API versions: 3-6
is_new: bool
Whether the replica should have existed on the broker or not.
Supported API versions: 1-6
leader_recovery_state: i8
1 if the partition is recovering from an unclean leader election; 0 otherwise.
Supported API versions: 6
unknown_tagged_fields: BTreeMap<i32, Vec<u8>>
Other tagged fields
Trait Implementations§
source§impl Clone for LeaderAndIsrPartitionState
impl Clone for LeaderAndIsrPartitionState
source§fn clone(&self) -> LeaderAndIsrPartitionState
fn clone(&self) -> LeaderAndIsrPartitionState
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more