pub struct RangeAssignor;Expand description
Contiguous ranges per topic, Java’s RangeAssignor.
For each topic the subscribed members are sorted by id and the partitions split into contiguous blocks. With 7 partitions and 3 members the split is 3/2/2, the remainder going to the earliest members.
It is deliberately not balanced across topics. With several topics of
few partitions the first member accumulates the leftovers of each — the
known wart of this strategy, and the reason RoundRobin exists. Reproduced
rather than fixed, because a member that “fixes” it disagrees with the Java
members in the same group.
Trait Implementations§
Source§impl Assignor for RangeAssignor
impl Assignor for RangeAssignor
Source§impl Clone for RangeAssignor
impl Clone for RangeAssignor
Source§fn clone(&self) -> RangeAssignor
fn clone(&self) -> RangeAssignor
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 RangeAssignor
Source§impl Debug for RangeAssignor
impl Debug for RangeAssignor
Source§impl Default for RangeAssignor
impl Default for RangeAssignor
Source§fn default() -> RangeAssignor
fn default() -> RangeAssignor
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RangeAssignor
impl RefUnwindSafe for RangeAssignor
impl Send for RangeAssignor
impl Sync for RangeAssignor
impl Unpin for RangeAssignor
impl UnsafeUnpin for RangeAssignor
impl UnwindSafe for RangeAssignor
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