Expand description
RPC dispatch trait for array shard fan-out.
ShardRpcDispatch abstracts the transport used to send one request
envelope to a shard and receive one response envelope. The cluster
crate defines the trait; the main nodedb binary implements it,
wiring the QUIC connection pool or an in-process loopback for local
shards.
Fan-out functions in scatter.rs accept Arc<dyn ShardRpcDispatch>
so they can be tested with mock implementations without a real cluster.
Traits§
- Shard
RpcDispatch - Send one request envelope to a shard and await one response envelope.