pub struct TopicListing { /* private fields */ }Expand description
One topic returned by AdminClient::list_topics.
Implementations§
Source§impl TopicListing
impl TopicListing
Sourcepub fn is_internal(&self) -> bool
pub fn is_internal(&self) -> bool
Returns whether Kafka marks this as an internal topic.
Sourcepub fn partition_count(&self) -> usize
pub fn partition_count(&self) -> usize
Returns the number of partitions included in metadata.
Sourcepub fn error_code(&self) -> i16
pub fn error_code(&self) -> i16
Returns Kafka’s raw topic-level metadata error code.
Sourcepub fn is_success(&self) -> bool
pub fn is_success(&self) -> bool
Returns whether Kafka reported a successful topic metadata result.
Sourcepub fn broker_error_kind(&self) -> Option<BrokerErrorKind>
pub fn broker_error_kind(&self) -> Option<BrokerErrorKind>
Returns kafrust’s classification for a non-zero Kafka error code.
Trait Implementations§
Source§impl Clone for TopicListing
impl Clone for TopicListing
Source§fn clone(&self) -> TopicListing
fn clone(&self) -> TopicListing
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TopicListing
impl Debug for TopicListing
impl Eq for TopicListing
Source§impl PartialEq for TopicListing
impl PartialEq for TopicListing
impl StructuralPartialEq for TopicListing
Auto Trait Implementations§
impl Freeze for TopicListing
impl RefUnwindSafe for TopicListing
impl Send for TopicListing
impl Sync for TopicListing
impl Unpin for TopicListing
impl UnsafeUnpin for TopicListing
impl UnwindSafe for TopicListing
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