Struct rdkafka::metadata::Metadata [] [src]

pub struct Metadata(_);

Metadata container. This structure wraps the metadata pointer returned by rdkafka-sys, and deallocates all the native resources when dropped.

Methods

impl Metadata
[src]

[src]

Creates a new Metadata container given a pointer to the native rdkafka-sys metadata.

[src]

Returns the id of the broker originating this metadata.

[src]

Returns the hostname of the broker originating this metadata.

[src]

Returns the metadata information for all the brokers in the cluster.

[src]

Returns the metadata information for all the topics in the cluster.

Trait Implementations

impl Drop for Metadata
[src]

[src]

Executes the destructor for this type. Read more