pub struct Metadata(/* private fields */);
Expand description
Metadata container.
This structure wraps the metadata pointer returned by rdkafka-sys, and deallocates all the native resources when dropped.
Implementations§
source§impl Metadata
impl Metadata
sourcepub fn orig_broker_id(&self) -> i32
pub fn orig_broker_id(&self) -> i32
Returns the ID of the broker originating this metadata.
sourcepub fn orig_broker_name(&self) -> &str
pub fn orig_broker_name(&self) -> &str
Returns the hostname of the broker originating this metadata.
sourcepub fn brokers(&self) -> &[MetadataBroker]
pub fn brokers(&self) -> &[MetadataBroker]
Returns the metadata information for all the brokers in the cluster.
sourcepub fn topics(&self) -> &[MetadataTopic]
pub fn topics(&self) -> &[MetadataTopic]
Returns the metadata information for all the topics in the cluster.
Trait Implementations§
Auto Trait Implementations§
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more