pub unsafe extern "C" fn rd_kafka_incremental_assign(
rk: *mut rd_kafka_t,
partitions: *const rd_kafka_topic_partition_list_t,
) -> *mut rd_kafka_error_t
Expand description
Incrementally add \p partitions to the current assignment.
If a COOPERATIVE assignor (i.e. incremental rebalancing) is being used, this method should be used in a rebalance callback to adjust the current assignment appropriately in the case where the rebalance type is RD_KAFKA_RESP_ERR__ASSIGN_PARTITIONS. The application must pass the partition list passed to the callback (or a copy of it), even if the list is empty. `partitions must not be NULL. This method may also be used outside the context of a rebalance callback.
Returns NULL on success, or an error object if the operation was unsuccessful.
@remark The returned error object (if not NULL) must be destroyed with rd_kafka_error_destroy().