Available on crate feature
client
only.Expand description
Connectors couple a transport with a protocol to create a connection.
In a high-level client, the connector is integrated with the connection pool, to facilitate connection re-use and pre-emption. The connector here is instead meant to be used without a connection pool, when it is known that a new connection should be created every time that the service gets called.
This can be useful if you are developing or testing a transport or protocol implementation.
Creating a Connector
object and awaiting it will give you a connection to the server,
which will obey the Connection
trait.
Structs§
- Connector
- A connector combines the futures required to connect to a transport and then complete the transport’s associated startup handshake.
- Connector
Future - A future that resolves to a connection.
- Connector
Layer - A layer which provides a connection for a request.
- Connector
Service - A service that opens a connection with a given transport and protocol.
Enums§
- Error
- Error that can occur during the connection process.