Skip to main content

capability_matches

Function capability_matches 

Source
pub fn capability_matches(caps: &Capabilities, query: &ContextQuery) -> bool
Expand description

Whether a provider is worth querying for a given request. A query with no kinds filter matches every provider (the host wants everyone’s best frames, SPEC.md §5); otherwise a provider matches when it declares at least one of the requested frame kinds. Used by query_all to fan out only to relevant providers.