Struct rdkafka::metadata::MetadataTopic
source · pub struct MetadataTopic(/* private fields */);
Expand description
Topic metadata information.
Implementations§
source§impl MetadataTopic
impl MetadataTopic
sourcepub fn partitions(&self) -> &[MetadataPartition]
pub fn partitions(&self) -> &[MetadataPartition]
Returns the partition metadata information for all the partitions.
sourcepub fn error(&self) -> Option<RDKafkaRespErr>
pub fn error(&self) -> Option<RDKafkaRespErr>
Returns the metadata error for the topic, or None
if there was no
error.
Auto Trait Implementations§
impl Freeze for MetadataTopic
impl RefUnwindSafe for MetadataTopic
impl !Send for MetadataTopic
impl !Sync for MetadataTopic
impl Unpin for MetadataTopic
impl UnwindSafe for MetadataTopic
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