def Serve.from_child
import bend-trace-context@0.2.0.0/trace_context.bend as TraceContextimport Base
3508# The service that a child of the kept context gives, with `state`, or
3509# Untraced with the error.
3510def Serve.from_child(state: TraceState, received: Maybe<&2, IncomingContext>,
3511 result: Result<&2, &2, GenerationError, LocalContext>) -> Service:
3512 match result:
3513 case Fail{error}:
3514 Untraced{error, received}
3515 case Done{context}:
3516 Operating{Continued{}, OutgoingContext.with_state(context, state), received}