pub fn compile(rule: &TowerRule) -> Result<ScryerFilter, CompileError>Expand description
Compile a TowerRule into a ScryerFilter ready for scryer.subscribe.
The rule’s federation policy is threaded into every Fields leaf so
scryer can fan out to the right peers when opening the subscription.
Returns Err(CompileError) for structurally invalid predicates — e.g. a
Not compound with more than one child. Field-level syntax errors (bad
regex patterns) are also surfaced here rather than deferred to runtime.