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: TopicNameThe topic name. This is only present in v0 or v1.
Supported API versions: 0-1
partition_index: i32The partition index.
Supported API versions: 0-6
controller_epoch: i32The controller epoch.
Supported API versions: 0-6
leader: BrokerIdThe broker ID of the leader.
Supported API versions: 0-6
leader_epoch: i32The leader epoch.
Supported API versions: 0-6
isr: Vec<BrokerId>The in-sync replica IDs.
Supported API versions: 0-6
zk_version: i32The 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: boolWhether the replica should have existed on the broker or not.
Supported API versions: 1-6
leader_recovery_state: i81 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
sourceimpl Clone for LeaderAndIsrPartitionState
impl Clone for LeaderAndIsrPartitionState
sourcefn clone(&self) -> LeaderAndIsrPartitionState
fn clone(&self) -> LeaderAndIsrPartitionState
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for LeaderAndIsrPartitionState
impl Debug for LeaderAndIsrPartitionState
sourceimpl Default for LeaderAndIsrPartitionState
impl Default for LeaderAndIsrPartitionState
sourceimpl Encodable for LeaderAndIsrPartitionState
impl Encodable for LeaderAndIsrPartitionState
sourcefn 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.
sourcefn 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.
sourceimpl Message for LeaderAndIsrPartitionState
impl Message for LeaderAndIsrPartitionState
sourceconst VERSIONS: VersionRange = VersionRange { min: 0, max: 6 }
const VERSIONS: VersionRange = VersionRange { min: 0, max: 6 }
The valid versions for this message.
sourceimpl PartialEq<LeaderAndIsrPartitionState> for LeaderAndIsrPartitionState
impl PartialEq<LeaderAndIsrPartitionState> for LeaderAndIsrPartitionState
sourcefn eq(&self, other: &LeaderAndIsrPartitionState) -> bool
fn eq(&self, other: &LeaderAndIsrPartitionState) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &LeaderAndIsrPartitionState) -> bool
fn ne(&self, other: &LeaderAndIsrPartitionState) -> bool
This method tests for !=.
impl StructuralPartialEq for LeaderAndIsrPartitionState
Auto Trait Implementations
impl RefUnwindSafe for LeaderAndIsrPartitionState
impl Send for LeaderAndIsrPartitionState
impl Sync for LeaderAndIsrPartitionState
impl Unpin for LeaderAndIsrPartitionState
impl UnwindSafe for LeaderAndIsrPartitionState
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more