MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / list_topics

Method list_topics

nodedb/src/control/pubsub.rs:171–174  ·  view source on GitHub ↗

List all topic names.

(&self)

Source from the content-addressed store, hash-verified

169
170 /// List all topic names.
171 pub fn list_topics(&self) -> Vec<String> {
172 let topics = super::lock_utils::read_or_recover(self.topics.read(), "topics");
173 topics.keys().cloned().collect()
174 }
175
176 /// Publish a message to a topic.
177 ///

Callers 1

show_topicsFunction · 0.80

Calls 3

read_or_recoverFunction · 0.85
collectMethod · 0.80
readMethod · 0.45

Tested by

no test coverage detected