pub struct PartitionReassignment { /* private fields */ }Expand description
A partition reassignment, which has been listed via
Admin::list_partition_reassignments.
Implementations§
Source§impl PartitionReassignment
impl PartitionReassignment
Sourcepub fn new(
replicas: Vec<i32>,
adding_replicas: Vec<i32>,
removing_replicas: Vec<i32>,
) -> Self
pub fn new( replicas: Vec<i32>, adding_replicas: Vec<i32>, removing_replicas: Vec<i32>, ) -> Self
Creates a partition reassignment from its replica sets.
§Arguments
replicas- the brokers which this partition currently resides on.adding_replicas- the brokers that we are adding this partition to as part of a reassignment.removing_replicas- the brokers that we are removing this partition from as part of a reassignment.
Sourcepub fn replicas(&self) -> &[i32]
pub fn replicas(&self) -> &[i32]
Returns the brokers which this partition currently resides on.
Sourcepub fn adding_replicas(&self) -> &[i32]
pub fn adding_replicas(&self) -> &[i32]
Returns the brokers that we are adding this partition to as part of a reassignment. A subset of replicas.
Sourcepub fn removing_replicas(&self) -> &[i32]
pub fn removing_replicas(&self) -> &[i32]
Returns the brokers that we are removing this partition from as part of a reassignment. A subset of replicas.
Trait Implementations§
Source§impl Clone for PartitionReassignment
impl Clone for PartitionReassignment
Source§fn clone(&self) -> PartitionReassignment
fn clone(&self) -> PartitionReassignment
Returns a duplicate 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 PartitionReassignment
impl Debug for PartitionReassignment
Auto Trait Implementations§
impl Freeze for PartitionReassignment
impl RefUnwindSafe for PartitionReassignment
impl Send for PartitionReassignment
impl Sync for PartitionReassignment
impl Unpin for PartitionReassignment
impl UnsafeUnpin for PartitionReassignment
impl UnwindSafe for PartitionReassignment
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