Module connect

Source
Available on crate feature connect only.
Expand description

TCP and TLS connector services.

§Stages of the TCP connector service:

  1. Resolve Host (if needed) with given Resolver and collect list of socket addresses.
  2. Establish TCP connection and return TcpStream.

§Stages of TLS connector services:

  1. Resolve DNS and establish a TcpStream with the TCP connector service.
  2. Wrap the stream and perform connect handshake with remote peer.
  3. Return wrapped stream type that implements AsyncRead and AsyncWrite.

Modules§

native_tlsnative-tls
Native-TLS based connector service.
opensslopenssl
OpenSSL based connector service.
rustls_0_20rustls-0_20-webpki-roots or rustls-0_20-native-roots
Rustls based connector service.
rustls_0_21rustls-0_21-webpki-roots or rustls-0_21-native-roots
Rustls based connector service.
rustls_0_22rustls-0_22
Rustls based connector service.
rustls_0_23rustls-0_23
Rustls based connector service.
tcp
TCP connector service.

Structs§

ConnectInfo
Connection request information.
Connection
Wraps underlying I/O and the connection request that initiated it.
Connector
Combined resolver and TCP connector service factory.
ConnectorService
Combined resolver and TCP connector service.
Resolver
DNS resolver service factory.
ResolverService
DNS resolver service.

Enums§

ConnectError
Errors that can result from using a connector service.

Traits§

Host
An interface for types where host parts (hostname and port) can be derived.
Resolve
Custom async DNS resolvers.