pub struct ListTopicsResult { /* private fields */ }Expand description
The result of Admin::list_topics.
Corresponds to org.apache.kafka.clients.admin.ListTopicsResult.
Implementations§
Source§impl ListTopicsResult
impl ListTopicsResult
Sourcepub fn names_to_listings(&self) -> KafkaFuture<HashMap<String, TopicListing>>
pub fn names_to_listings(&self) -> KafkaFuture<HashMap<String, TopicListing>>
Return a future which yields a map of topic names to TopicListing
objects.
Sourcepub fn listings(&self) -> KafkaFuture<Vec<TopicListing>>
pub fn listings(&self) -> KafkaFuture<Vec<TopicListing>>
Return a future which yields a collection of TopicListing objects.
Sourcepub fn names(&self) -> KafkaFuture<HashSet<String>>
pub fn names(&self) -> KafkaFuture<HashSet<String>>
Return a future which yields a set of topic names.
Trait Implementations§
Source§impl Clone for ListTopicsResult
impl Clone for ListTopicsResult
Source§fn clone(&self) -> ListTopicsResult
fn clone(&self) -> ListTopicsResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ListTopicsResult
impl !RefUnwindSafe for ListTopicsResult
impl Send for ListTopicsResult
impl Sync for ListTopicsResult
impl Unpin for ListTopicsResult
impl UnsafeUnpin for ListTopicsResult
impl !UnwindSafe for ListTopicsResult
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