Struct rdkafka::topic_partition_list::TopicPartitionList [] [src]

pub struct TopicPartitionList { /* fields omitted */ }

A structure to store and manipulate a list of topics and partitions with optional offsets.

Methods

impl TopicPartitionList
[src]

Creates a new empty list with default capacity.

Creates a new empty list with the specified capacity.

Transforms a pointer to the native librdkafka RDTopicPartitionList into a managed TopicPartitionList instance.

Given a topic map, generates a new TopicPartitionList.

Returns the pointer to the internal librdkafka structure.

Capture the instance without calling the destructor on the internal librdkafka structure.

Returns the number of elements in the list.

Returns the capacity of the list.

Adds a topic with unassigned partitions to the list.

Adds a topic and partition to the list.

Adds a topic and partition range to the list.

Sets the offset for an already created topic partition. It will fail if the topic partition isn't in the list.

Adds a topic and partition to the list, with the specified offset.

Given a topic name and a partition number, returns the corresponding list element.

Sets all partitions in the list to the specified offset.

Returns all the elements of the list.

Returns all the elements of the list that belong to the specified topic.

Returns a hashmap-based representation of the list.

Trait Implementations

impl Clone for TopicPartitionList
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Drop for TopicPartitionList
[src]

A method called when the value goes out of scope. Read more

impl PartialEq for TopicPartitionList
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Default for TopicPartitionList
[src]

Returns the "default value" for a type. Read more

impl Debug for TopicPartitionList
[src]

Formats the value using the given formatter.