#[non_exhaustive]pub enum DescribeTopicsResult {
ByTopicId(HashMap<Uuid, KafkaFuture<TopicDescription>>),
ByTopicName(HashMap<String, KafkaFuture<TopicDescription>>),
}Expand description
The result of Admin::describe_topics_with_topics.
Corresponds to org.apache.kafka.clients.admin.DescribeTopicsResult. As
with DeleteTopicsResult, the “keyed by id XOR name” invariant is a closed
enum instead of Java’s two nullable maps.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
ByTopicId(HashMap<Uuid, KafkaFuture<TopicDescription>>)
Result keyed by topic id (the request used a TopicIdCollection).
ByTopicName(HashMap<String, KafkaFuture<TopicDescription>>)
Result keyed by topic name (the request used a TopicNameCollection).
Implementations§
Source§impl DescribeTopicsResult
impl DescribeTopicsResult
Sourcepub fn topic_id_values(
&self,
) -> Option<&HashMap<Uuid, KafkaFuture<TopicDescription>>>
pub fn topic_id_values( &self, ) -> Option<&HashMap<Uuid, KafkaFuture<TopicDescription>>>
A map from topic IDs to futures if the request used topic IDs, otherwise
None.
Sourcepub fn topic_name_values(
&self,
) -> Option<&HashMap<String, KafkaFuture<TopicDescription>>>
pub fn topic_name_values( &self, ) -> Option<&HashMap<String, KafkaFuture<TopicDescription>>>
A map from topic names to futures if the request used topic names,
otherwise None.
Sourcepub fn all_topic_names(
&self,
) -> Option<KafkaFuture<HashMap<String, TopicDescription>>>
pub fn all_topic_names( &self, ) -> Option<KafkaFuture<HashMap<String, TopicDescription>>>
A future map from topic names to descriptions if the request used topic
names, otherwise None. Succeeds only if all descriptions succeed.
Sourcepub fn all_topic_ids(
&self,
) -> Option<KafkaFuture<HashMap<Uuid, TopicDescription>>>
pub fn all_topic_ids( &self, ) -> Option<KafkaFuture<HashMap<Uuid, TopicDescription>>>
A future map from topic ids to descriptions if the request used topic
ids, otherwise None. Succeeds only if all descriptions succeed.
Trait Implementations§
Source§impl Clone for DescribeTopicsResult
impl Clone for DescribeTopicsResult
Source§fn clone(&self) -> DescribeTopicsResult
fn clone(&self) -> DescribeTopicsResult
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more