Skip to main content

Module matcher

Module matcher 

Source
Expand description

Class matching — what a ClassRule claims.

Two types live here: RangeSet, the hand-rolled sorted/coalesced u64 range container the proxy uses instead of pulling in a dependency (nothing in the workspace offers one), and Matcher, the AND of the eight keys a rule may name.

The one rule that shapes everything below: an absent key never matches. A unit whose subgroup_id the wire did not carry does not match a subgroup_id matcher — it falls to the default class. None as wildcard was rejected outright, because it silently widens a rule aimed at video to also match audio.

Structs§

Keys 🔒
The keys one unit carries, whichever carrier it arrived on.
Matcher
Which units a ClassRule claims.
RangeSet
A sorted, coalesced set of inclusive u64 ranges.

Enums§

MatchKind
What a Matcher can be aimed at.
MatcherField
One Matcher key, named so a report about it is typed rather than a string.

Functions§

kind_of 🔒
Which MatchKind a framed object’s stream is.