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]
fn from_ptr(ptr: *const RDKafkaMetadata) -> Metadata
Creates a new Metadata container given a pointer to the native rdkafka-sys metadata.
fn orig_broker_id(&self) -> i32
Returns the id of the broker originating this metadata.
fn orig_broker_name<'a>(&'a self) -> &'a str
Returns the hostname of the broker originating this metadata.
fn brokers(&self) -> &[MetadataBroker]
Returns the metadata information for all the brokers in the cluster.
fn topics(&self) -> &[MetadataTopic]
Returns the metadata information for all the topics in the cluster.