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/
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.