#[non_exhaustive]pub enum Assignment {
Range,
RoundRobin,
CooperativeSticky,
}Expand description
The partition assignment strategy for the consumer group (librdkafka’s
partition.assignment.strategy).
These are librdkafka’s built-in strategies; the client offers no API for a custom group assignor (the rebalance callback only observes assignments). Cooperative and eager strategies cannot mix within one group - librdkafka rejects the join, and the error surfaces on the subscriber stream.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Range
Co-partitioned ranges per topic (the Kafka default family).
RoundRobin
Round-robin across all subscribed topics.
CooperativeSticky
Incremental cooperative rebalancing: unaffected partitions keep flowing during a rebalance instead of stopping the world.
Trait Implementations§
Source§impl Clone for Assignment
impl Clone for Assignment
Source§fn clone(&self) -> Assignment
fn clone(&self) -> Assignment
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 Assignment
Source§impl Debug for Assignment
impl Debug for Assignment
impl Eq for Assignment
Source§impl PartialEq for Assignment
impl PartialEq for Assignment
impl StructuralPartialEq for Assignment
Auto Trait Implementations§
impl Freeze for Assignment
impl RefUnwindSafe for Assignment
impl Send for Assignment
impl Sync for Assignment
impl Unpin for Assignment
impl UnsafeUnpin for Assignment
impl UnwindSafe for Assignment
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