pub struct NewPartitions {
pub total_count: i32,
pub assignments: Vec<Vec<i32>>,
}Expand description
New Partitions.
Fields§
§total_count: i32Total Count.
assignments: Vec<Vec<i32>>Assignments.
Implementations§
Source§impl NewPartitions
impl NewPartitions
Sourcepub fn increase_to(total_count: i32) -> Self
pub fn increase_to(total_count: i32) -> Self
Increase To.
Sourcepub fn with_assignment<I>(self, broker_ids: I) -> Selfwhere
I: IntoIterator<Item = i32>,
pub fn with_assignment<I>(self, broker_ids: I) -> Selfwhere
I: IntoIterator<Item = i32>,
Sets assignment and returns the updated value.
Trait Implementations§
Source§impl Clone for NewPartitions
impl Clone for NewPartitions
Source§fn clone(&self) -> NewPartitions
fn clone(&self) -> NewPartitions
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 NewPartitions
impl Debug for NewPartitions
Source§impl PartialEq for NewPartitions
impl PartialEq for NewPartitions
impl Eq for NewPartitions
impl StructuralPartialEq for NewPartitions
Auto Trait Implementations§
impl Freeze for NewPartitions
impl RefUnwindSafe for NewPartitions
impl Send for NewPartitions
impl Sync for NewPartitions
impl Unpin for NewPartitions
impl UnsafeUnpin for NewPartitions
impl UnwindSafe for NewPartitions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.