Skip to main content

Module pool

Module pool 

Source
Expand description

Resource pool for sharing bounded resources across async tasks.

Provides a Pool trait and a built-in SemaphorePool<T> implementation that distributes items drawn from a Vec<T> under a counting semaphore.

Structs§

AutoReconnectPool
A pool wrapper that transparently reconnects broken resources.
Pooled
A pooled resource that releases the permit when dropped.
SemaphorePool
In-memory pool backed by a semaphore + Vec.

Enums§

PoolError
Errors returned by pool operations.

Traits§

Pool
A pool of resources with bounded concurrency.
Reconnectable
A liveness probe for a pooled resource.