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]

[src]

Creates a new empty list with default capacity.

[src]

Creates a new empty list with the specified capacity.

[src]

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

[src]

Given a topic map, generates a new TopicPartitionList.

[src]

Returns the pointer to the internal librdkafka structure.

[src]

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

[src]

Returns the number of elements in the list.

[src]

Returns the capacity of the list.

[src]

Adds a topic with unassigned partitions to the list.

[src]

Adds a topic and partition to the list.

[src]

Adds a topic and partition range to the list.

[src]

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

[src]

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

[src]

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

[src]

Sets all partitions in the list to the specified offset.

Important traits for Vec<u8>
[src]

Returns all the elements of the list.

Important traits for Vec<u8>
[src]

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

[src]

Returns a hashmap-based representation of the list.

Trait Implementations

impl Clone for TopicPartitionList
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Drop for TopicPartitionList
[src]

[src]

Executes the destructor for this type. Read more

impl PartialEq for TopicPartitionList
[src]

[src]

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

1.0.0
[src]

This method tests for !=.

impl Default for TopicPartitionList
[src]

[src]

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

impl Debug for TopicPartitionList
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations