Skip to main content

Module rpc_client

Module rpc_client 

Source
Expand description

Unified RPC client parameterized over Signer and Transport.

RpcClientImpl<S, T> handles envelope construction, signing, response verification, and streaming setup. Same code compiles to native and wasm32 — only the type parameters differ:

  • Native: RpcClient<LocalSigner, ZmqConnection>
  • WASM: RpcClient<JsSigner, WtConnection>

Generated service clients (e.g., RegistryClient) use Arc<dyn RpcClient> for object-safe dynamic dispatch.

Structs§

CallOptions
Per-call options for RPC requests.
RequestBuilder
Per-call request builder for custom authentication options.
RpcClientImpl
Unified RPC client. Evolved from ZmqClient — same envelope, timeout, and resilience logic, parameterized over transport and signing.

Traits§

FederateProofProvider
Builds a holder proof after all forwarded recipients exist. capnp_body is the application body before browser carrier framing, matching what dispatch recovers and verifies. This is opt-in per client.
PreSealGuard
Revalidates external resolution authority immediately before envelope construction and sealing.
RpcClient
Object-safe RPC client trait for dynamic dispatch.
RpcClientProvider
Application-supplied construction seam for generated service clients.