Struct kafka::client::fetch::Topic [] [src]

pub struct Topic<'a> {
    // some fields omitted
}

The result of a "fetch messages" request from a particular Kafka broker for a single topic only. Beside the name of the topic, this structure provides an iterator over the topic partitions from which messages were requested.

Methods

impl<'a> Topic<'a>
[src]

fn topic(&self) -> &'a str

Retrieves the identifier/name of the represented topic.

fn partitions(&self) -> &[Partition<'a>]

Provides an iterator over all the partitions of this topic for which messages were requested.