pub struct TopicInfo {
pub name: String,
pub topic_id: TopicId,
pub internal: bool,
pub partitions: Vec<PartitionInfo>,
pub error: Option<ErrorCode>,
}Expand description
One topic.
Fields§
§name: StringTopic name.
topic_id: TopicIdTopic id, zero on brokers or versions that do not report one.
internal: boolWhether Kafka considers this an internal topic.
partitions: Vec<PartitionInfo>Partitions, in index order.
error: Option<ErrorCode>A topic-level error — UNKNOWN_TOPIC_OR_PARTITION for a name that does
not exist, most often.
Implementations§
Trait Implementations§
impl Eq for TopicInfo
impl StructuralPartialEq for TopicInfo
Auto Trait Implementations§
impl Freeze for TopicInfo
impl RefUnwindSafe for TopicInfo
impl Send for TopicInfo
impl Sync for TopicInfo
impl Unpin for TopicInfo
impl UnsafeUnpin for TopicInfo
impl UnwindSafe for TopicInfo
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.