Module pool
Available on crate feature
net only.Modules§
Structs§
- Active
Slot - Active slot is able to actively use a connection to make requests. They are used to track ‘active’ connections inside the pool
- Leased
Connection LeasedConnectionis a connection that is temporarily leased from a pool- LruDrop
Pool - Connection pool that uses LRU to evict connections
- Multiplex
Pool - Connection pool that multiplexes concurrent users over shared connections.
- Multiplexed
Connection - A cheap handle to a shared connection in a
MultiplexPool. - NoPool
- Connection pool that doesn’t store connections and has no limits.
- Pool
Slot - Pool slot is needed to add a connection to the pool. Poolslots have a one to one mapping to connections inside the pool, and are used to track the ‘total’ connections inside the pool
- Pooled
Connector - Pooled
Connector Layer
Enums§
- Connection
Result - Result returned by a successful call to
Pool::get_conn - MuxSelection
- Strategy used to pick a connection among several that share the same
ConnIDand still have stream capacity. - Reuse
Strategy
Traits§
- ConnID
ConnIDis used to identify a connection in a connection pool. These IDs are not unique and multiple connections can have the same ID. IDs are used to filter which connections can be used for a specific input in a way that is independent of what an input is.- Pool
Poolimplements the storage part of a connection pool. This storage also decides which connection it returns for a given ID or when the caller asks to remove one, this results in the storage deciding which mode we use for connection reuse and dropping (eg FIFO for reuse and LRU for dropping conn when pool is full)- ReqTo
ConnID ReqToConnIDis used to convert aInputto a connection ID. These IDs are not unique and multiple connections can have the same ID. IDs are used to filter which connections can be used for a specific input in a way that is independent of what an input is.