Skip to main content

matches

Function matches 

Source
pub fn matches(required: &CapabilityRequirement, worker: &CapabilitySet) -> bool
Expand description

Subset predicate: every required token appears in the worker’s set.

Case-sensitive, exact-string match. Empty requiredtrue. This is the pure-Rust mirror of Lua missing_capabilities in lua/scheduling.lua.

Called from:

  • ff-scheduler::claim (fast-path short-circuit before quota admission)
  • ff-backend-postgres (future; direct predicate in admission path)