parse_agent_topic

Function parse_agent_topic 

Source
pub fn parse_agent_topic(topic: &str) -> Option<(&str, &str)>
Expand description

Extract (agent_id, event) from an agents/{id}/{event} topic.

Returns None if the topic does not match the expected pattern.