def SendPlan.generation
import bend-trace-context@0.2.0.0/trace_context.bend as TraceContextimport Base
3723# The generation that the plan drives. A service without an operation has
3724# none to drive: its generation has already failed with the service's
3725# error, so that a host reads no word.
3726def SendPlan.generation(plan: SendPlan) -> Generation:
3727 match plan:
3728 case SendChild{generation, limits, outgoing, received, carrier}:
3729 generation
3730 case SendFallback{error, limits, received, carrier}:
3731 Generation{0n, Failed{error}}