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
- Basic
Conn Id - Connection identity produced by
BasicConnIdentifier. - Basic
Conn Identifier - Basic connection-pool identifier derived from connection input.
- Connection
Admission - Resource admission published on an established connection’s extensions.
- Connection
Admission Lease - A transport’s resources reserved for one pool handout.
- Connection
Reuse - Reuse requirements published by a connector on its established connection.
- 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.
- Multiplex
Slot - The share of a
MultiplexPool’s limits a new connection takes: the create permit ofMultiplexPool::get_conn. The connection keeps it while stored. - 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 - Reuse
Key - Exact identity of the reuse requirements of a connection or a request.
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 - Saturation
Policy - What a
MultiplexPoolat a connection limit does for a checkout that needs a new connection: wait, or replace an idle connection, of its own id at the id’s limit and of any id at the total one.
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.- Connection
Admission Policy - Transport resources required before a pooled connection can be handed out.
- Connection
Reuse Policy - Connection-owned requirements for reusing an established transport.
- 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.