def SendPlan.sent

bend-trace-context@0.2.0.0 · trace_context.bend:3733

import bend-trace-context@0.2.0.0/trace_context.bend as TraceContext
import Base

3733# The message that the result of the plan's generation gives, before the
3734# policy applies. The fallback of a service without an operation does not
3735# depend on it.
3736def SendPlan.sent(plan: SendPlan, result: Result<&2, &2, GenerationError, LocalContext>) -> Sent:
3737  match plan:
3738    case SendChild{generation, limits, outgoing, received, carrier}:
3739      Send.of(limits, outgoing, received, carrier, result)
3740    case SendFallback{error, limits, received, carrier}:
3741      Send.fallback(limits, received, error, carrier)

Uses (7)

Used by (1)