Skip to main content

Module routing

Module routing 

Source
Expand description

Compiled routing rules (§8-B2 routing_rules) and the transform-dispatch decision (§6.1): passthrough / transform_to / local / unsupported.

Structs§

CompiledRoutingRule
A routing-rule row with its string fields parsed into protocol enums.
RoutingRuleSpec
Storage-agnostic routing-rule row consumed by the transform crate.

Enums§

RoutingDecision
The dispatch decision for one (source op, target channel kind) pairing.
RuleImpl
routing_rules.implementation, parsed.

Functions§

compile
Parse enabled rows in sort_order. Unparsable rows are skipped with a warning — bad config must not take the snapshot down.
decide
Decide how to service source on a channel. Routing is driven entirely by stored rules: an explicit rule wins; no matching rule means Unsupported. Channel defaults are materialized into real rules at provider creation (see [crate::api::routing::seed_default_routing]) — they are not recomputed here. A transform_to rule whose dest_kind is missing is malformed and yields Unsupported.