fede1024 / rust-rdkafka

A fully asynchronous, futures-based Kafka client library for Rust based on librdkafka

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add support for AdminAPI `DescribeCluster()` and `DescribeTopics()`

dkirrane opened this issue · comments

I'm looking for the rust equivalent of the Java org.apache.kafka.clients.admin.AdminClient API

            adminClient
                .describeCluster(
                    new DescribeClusterOptions()
                        .timeoutMs((int) Math.min(Integer.MAX_VALUE, remainingWaitMs)))
                .nodes()
                .get();

and

        adminClient.describeTopics(
            topicNames, new DescribeTopicsOptions().timeoutMs(Math.toIntExact(timeoutMs)));

It looks like it's available in librdkafka now via this commit
https://github.com/confluentinc/librdkafka/pull/4240/files