Expand description
Minimal RPC connection pool.
A bounded pool of RpcClients. acquire() returns an idle
client (or builds a new one if none are available and the pool
isn’t at capacity); the returned guard returns the client to the
pool on Drop.
This is intentionally NOT bb8 / deadpool — those bring async
traits and heavyweight reconnect logic that the v1 SDK doesn’t
need. If a future workload requires fancier pooling (e.g.
per-connection health checks, idle eviction), swap to a real pool
crate at that point.
Structs§
- Pooled
Client - RAII guard returned by
RpcPool::acquire. Returns the client to the pool onDropso subsequent acquires reuse the connection. - RpcPool
- A minimal connection pool.
- RpcPool
Config - Configuration for
RpcPool.