pub fn subject_matches(pattern: &str, subject: &str) -> boolExpand description
Returns true if the concrete subject matches the NATS pattern.
* matches exactly one token; > matches one or more trailing tokens.
Used by generated command::Command::from_payload dispatch so that an
event published to a per-instance subject (e.g. rooms.1.events.v1) is
matched against a wildcard pattern (e.g. rooms.*.events.v1).