Skip to main content

Module pool

Module pool 

Source
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§

PooledClient
RAII guard returned by RpcPool::acquire. Returns the client to the pool on Drop so subsequent acquires reuse the connection.
RpcPool
A minimal connection pool.
RpcPoolConfig
Configuration for RpcPool.