pub struct AlterPartitionFacts {
pub request_leader_epoch: i32,
pub current_leader_epoch: i32,
pub request_partition_epoch: i32,
pub current_partition_epoch: i32,
pub requester_is_leader: bool,
pub proposed_isr: ProposedIsr,
pub recovery_state_valid: bool,
pub replicas_eligible: bool,
}Expand description
What the controller knows about one AlterPartition partition row, as
Kafka’s ReplicationControlManager.validateAlterPartitionData reads it.
Fields§
§request_leader_epoch: i32§current_leader_epoch: i32§request_partition_epoch: i32§current_partition_epoch: i32§requester_is_leader: boolThe request’s brokerId is the partition’s current leader.
proposed_isr: ProposedIsr§recovery_state_valid: boolThe requested leader recovery state is a known value, a RECOVERING
request proposes at most one member, and a RECOVERED partition is not
asked to go back to RECOVERING.
replicas_eligible: boolKafka’s ineligibleReplicasForIsr is empty: every proposed member is
registered, unfenced, not in controlled shutdown, and carries either
the -1 sentinel or its registered broker epoch.
Trait Implementations§
Source§impl Clone for AlterPartitionFacts
impl Clone for AlterPartitionFacts
Source§fn clone(&self) -> AlterPartitionFacts
fn clone(&self) -> AlterPartitionFacts
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AlterPartitionFacts
Source§impl Debug for AlterPartitionFacts
impl Debug for AlterPartitionFacts
impl Eq for AlterPartitionFacts
Source§impl PartialEq for AlterPartitionFacts
impl PartialEq for AlterPartitionFacts
impl StructuralPartialEq for AlterPartitionFacts
Auto Trait Implementations§
impl Freeze for AlterPartitionFacts
impl RefUnwindSafe for AlterPartitionFacts
impl Send for AlterPartitionFacts
impl Sync for AlterPartitionFacts
impl Unpin for AlterPartitionFacts
impl UnsafeUnpin for AlterPartitionFacts
impl UnwindSafe for AlterPartitionFacts
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