pub struct UpdateMetadataPartitionState {
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 offline_replicas: Vec<BrokerId>,
pub unknown_tagged_fields: BTreeMap<i32, Vec<u8>>,
}
Expand description
Valid versions: 0-7
Fields§
§topic_name: TopicName
In older versions of this RPC, the topic name.
Supported API versions: 0-4
partition_index: i32
The partition index.
Supported API versions: 0-7
controller_epoch: i32
The controller epoch.
Supported API versions: 0-7
leader: BrokerId
The ID of the broker which is the current partition leader.
Supported API versions: 0-7
leader_epoch: i32
The leader epoch of this partition.
Supported API versions: 0-7
isr: Vec<BrokerId>
The brokers which are in the ISR for this partition.
Supported API versions: 0-7
zk_version: i32
The Zookeeper version.
Supported API versions: 0-7
replicas: Vec<BrokerId>
All the replicas of this partition.
Supported API versions: 0-7
offline_replicas: Vec<BrokerId>
The replicas of this partition which are offline.
Supported API versions: 4-7
unknown_tagged_fields: BTreeMap<i32, Vec<u8>>
Other tagged fields
Trait Implementations§
source§impl Clone for UpdateMetadataPartitionState
impl Clone for UpdateMetadataPartitionState
source§fn clone(&self) -> UpdateMetadataPartitionState
fn clone(&self) -> UpdateMetadataPartitionState
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 UpdateMetadataPartitionState
impl Debug for UpdateMetadataPartitionState
source§impl Encodable for UpdateMetadataPartitionState
impl Encodable for UpdateMetadataPartitionState
source§fn encode<B: ByteBufMut>(
&self,
buf: &mut B,
version: i16
) -> Result<(), EncodeError>
fn encode<B: ByteBufMut>(
&self,
buf: &mut B,
version: i16
) -> Result<(), EncodeError>
Encode the message into the target buffer.
source§fn compute_size(&self, version: i16) -> Result<usize, EncodeError>
fn compute_size(&self, version: i16) -> Result<usize, EncodeError>
Compute the total size of the message when encoded.
source§impl Message for UpdateMetadataPartitionState
impl Message for UpdateMetadataPartitionState
source§const VERSIONS: VersionRange = _
const VERSIONS: VersionRange = _
The valid versions for this message.