Skip to main content

Module generated_rpcs

Module generated_rpcs 

Source
Expand description

The RPC registry generated from the proto descriptor set.

Regenerate with udb sdk generate --lang rust --out sdk; CI fails if the committed copy differs from what the descriptor produces. Generated by udb sdk generate from the embedded proto descriptor set. Edit the template under sdk-templates//, not this file.

The RPC registry, derived from the proto descriptor set.

Its reason for existing is RpcSpec::retry_safe. Whether an RPC may be retried is a property the PROTO declares, not something a client should infer from a method name — “update” is not reliably a mutation and “get” is not reliably a read across every service. Guessing from names is how a retry ends up replaying a charge.

Generated from the same descriptor the broker serves, so the table cannot drift from the contract: adding an RPC upstream adds a row here.

Structs§

RpcSpec
One RPC, as the contract declares it.

Statics§

RPCS
Every RPC the broker serves, sorted as the descriptor emits them.

Functions§

is_read_only
Whether the contract declares this RPC free of mutations.
is_replay_safe
Whether the contract explicitly declares this MUTATION replayable.
is_retry_safe
Whether repeating this RPC is safe — read-only OR contract-declared replayable.
spec_for_path
Look up an RPC by its full gRPC method path.