def ServicePlan.service
import bend-trace-context@0.2.0.0/trace_context.bend as TraceContextimport Base
3585# The service that the result of the plan's generation gives, before the
3586# policy applies: its operation, or Untraced with the error.
3587def ServicePlan.service(plan: ServicePlan, result: Result<&2, &2, GenerationError, LocalContext>) -> Service:
3588 match plan:
3589 case ContinuePlan{generation, state, received}:
3590 Serve.from_child(state, received, result)
3591 case StartPlan{generation, origin}:
3592 Serve.from_start(origin, result)