pub struct OngoingReassignment {
pub topic: String,
pub partition: i32,
pub replicas: Vec<i32>,
pub adding_replicas: Vec<i32>,
pub removing_replicas: Vec<i32>,
}Expand description
Flattened ongoing reassignment from ListPartitionReassignments
(Java PartitionReassignment).
std::fmt::Display is Java PartitionReassignment.toString (no topic or
partition; those are the listPartitionReassignments map keys).
Fields§
§topic: StringTopic name.
partition: i32Partition index.
replicas: Vec<i32>Replica set after the move completes.
adding_replicas: Vec<i32>Brokers being added.
removing_replicas: Vec<i32>Brokers being removed.
Implementations§
Source§impl OngoingReassignment
impl OngoingReassignment
Sourcepub fn adding_replicas(&self) -> &[i32]
pub fn adding_replicas(&self) -> &[i32]
Java PartitionReassignment.addingReplicas.
Sourcepub fn removing_replicas(&self) -> &[i32]
pub fn removing_replicas(&self) -> &[i32]
Java PartitionReassignment.removingReplicas.
Trait Implementations§
Source§impl Clone for OngoingReassignment
impl Clone for OngoingReassignment
Source§fn clone(&self) -> OngoingReassignment
fn clone(&self) -> OngoingReassignment
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 moreSource§impl Debug for OngoingReassignment
impl Debug for OngoingReassignment
Source§impl Display for OngoingReassignment
impl Display for OngoingReassignment
impl Eq for OngoingReassignment
Source§impl PartialEq for OngoingReassignment
impl PartialEq for OngoingReassignment
impl StructuralPartialEq for OngoingReassignment
Auto Trait Implementations§
impl Freeze for OngoingReassignment
impl RefUnwindSafe for OngoingReassignment
impl Send for OngoingReassignment
impl Sync for OngoingReassignment
impl Unpin for OngoingReassignment
impl UnsafeUnpin for OngoingReassignment
impl UnwindSafe for OngoingReassignment
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