ConstReadonlyDeliver: ForwardActionThe packet is for this node; hand it to the application.
ReadonlyFlood: ForwardActionNo route is known; fall back to flooding the packet.
ReadonlyRelay: ForwardActionA route is known; unicast the packet to the next hop reported alongside.
What to do with a packet bound for a given node.
Provided as a runtime object plus a matching string-union type so it works as both a value (
ForwardAction.Relay) and a type annotation.