pub unsafe extern "C" fn rd_kafka_commit_queue(
rk: *mut rd_kafka_t,
offsets: *const rd_kafka_topic_partition_list_t,
rkqu: *mut rd_kafka_queue_t,
cb: Option<unsafe extern "C" fn(rk: *mut rd_kafka_t, err: rd_kafka_resp_err_t, offsets: *mut rd_kafka_topic_partition_list_t, commit_opaque: *mut c_void)>,
commit_opaque: *mut c_void,
) -> rd_kafka_resp_err_t
Expand description
Commit offsets on broker for the provided list of partitions.
See rd_kafka_commit for `offsets semantics.
The result of the offset commit will be posted on the provided `rkqu queue.
If the application uses one of the poll APIs (rd_kafka_poll(), rd_kafka_consumer_poll(), rd_kafka_queue_poll(), ..) to serve the queue the `cb callback is required.
The commit_opaque argument is passed to the callback as
commit_opaque,
or if using the event API the callback is ignored and the offset commit
result will be returned as an RD_KAFKA_EVENT_COMMIT event and the
`commit_opaque value will be available with rd_kafka_event_opaque().
If `rkqu is NULL a temporary queue will be created and the callback will be served by this call.
@sa rd_kafka_commit() @sa rd_kafka_conf_set_offset_commit_cb()