pub fn parse_node_path(
prefix: impl AsPath,
depth: usize,
path: impl AsPath,
) -> Option<NodePath>Expand description
Parse a stats broadcast announce path published under prefix with the
given grouping depth, splitting it into its group and node parts.
Returns None when the path is not under prefix or has no node
category segment where one is expected (which also filters out sibling
categories another producer may publish under the same prefix). A group
segment literally named node is ambiguous and will mis-parse; don’t name
groups that.