pub struct LeaderAndIsrPartitionState {
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 unknown_tagged_fields: BTreeMap<i32, Vec<u8>>,
}
Expand description
Valid versions: 0-5
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-5
controller_epoch: i32
The controller epoch.
Supported API versions: 0-5
leader: BrokerId
The broker ID of the leader.
Supported API versions: 0-5
leader_epoch: i32
The leader epoch.
Supported API versions: 0-5
isr: Vec<BrokerId>
The in-sync replica IDs.
Supported API versions: 0-5
zk_version: i32
The ZooKeeper version.
Supported API versions: 0-5
replicas: Vec<BrokerId>
The replica IDs.
Supported API versions: 0-5
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-5
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-5
is_new: bool
Whether the replica should have existed on the broker or not.
Supported API versions: 1-5
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
const VERSIONS: VersionRange
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