actix_tls/connect/
mod.rs

1//! TCP and TLS connector services.
2//!
3//! # Stages of the TCP connector service:
4//! 1. Resolve [`Host`] (if needed) with given [`Resolver`] and collect list of socket addresses.
5//! 1. Establish TCP connection and return [`TcpStream`].
6//!
7//! # Stages of TLS connector services:
8//! 1. Resolve DNS and establish a [`TcpStream`] with the TCP connector service.
9//! 1. Wrap the stream and perform connect handshake with remote peer.
10//! 1. Return wrapped stream type that implements `AsyncRead` and `AsyncWrite`.
11//!
12//! [`TcpStream`]: actix_rt::net::TcpStream
13
14mod connect_addrs;
15mod connection;
16mod connector;
17mod error;
18mod host;
19mod info;
20mod resolve;
21mod resolver;
22pub mod tcp;
23
24#[cfg(feature = "uri")]
25mod uri;
26
27#[cfg(feature = "openssl")]
28pub mod openssl;
29
30#[cfg(any(
31    feature = "rustls-0_20-webpki-roots",
32    feature = "rustls-0_20-native-roots",
33))]
34pub mod rustls_0_20;
35
36#[doc(hidden)]
37#[cfg(any(
38    feature = "rustls-0_20-webpki-roots",
39    feature = "rustls-0_20-native-roots",
40))]
41pub use rustls_0_20 as rustls;
42
43#[cfg(any(
44    feature = "rustls-0_21-webpki-roots",
45    feature = "rustls-0_21-native-roots",
46))]
47pub mod rustls_0_21;
48
49#[cfg(feature = "rustls-0_22")]
50pub mod rustls_0_22;
51
52#[cfg(feature = "rustls-0_23")]
53pub mod rustls_0_23;
54
55#[cfg(feature = "native-tls")]
56pub mod native_tls;
57
58pub use self::{
59    connection::Connection,
60    connector::{Connector, ConnectorService},
61    error::ConnectError,
62    host::Host,
63    info::ConnectInfo,
64    resolve::Resolve,
65    resolver::{Resolver, ResolverService},
66};