1
0
mirror of https://github.com/fafhrd91/actix-net synced 2025-03-21 04:51:59 +01:00

47 lines
1.3 KiB
Rust
Raw Normal View History

2021-11-28 00:56:15 +00:00
//! TCP and TLS connector services.
2018-12-10 08:42:31 -08:00
//!
2021-01-26 08:05:19 +00:00
//! # Stages of the TCP connector service:
//! 1. Resolve [`Host`] (if needed) with given [`Resolver`] and collect list of socket addresses.
//! 1. Establish TCP connection and return [`TcpStream`].
2018-12-10 08:42:31 -08:00
//!
2021-01-26 08:05:19 +00:00
//! # Stages of TLS connector services:
//! 1. Resolve DNS and establish a [`TcpStream`] with the TCP connector service.
//! 1. Wrap the stream and perform connect handshake with remote peer.
//! 1. Return wrapped stream type that implements `AsyncRead` and `AsyncWrite`.
2021-01-26 08:05:19 +00:00
//!
//! [`TcpStream`]: actix_rt::net::TcpStream
mod connect_addrs;
mod connection;
2018-12-10 08:42:31 -08:00
mod connector;
2019-03-13 12:40:11 -07:00
mod error;
mod host;
mod info;
2019-12-05 16:40:24 +06:00
mod resolve;
mod resolver;
pub mod tcp;
2020-12-29 19:36:17 +08:00
#[cfg(feature = "uri")]
#[cfg_attr(docsrs, doc(cfg(feature = "uri")))]
2019-03-14 11:15:32 -07:00
mod uri;
#[cfg(feature = "openssl")]
#[cfg_attr(docsrs, doc(cfg(feature = "openssl")))]
pub mod openssl;
#[cfg(feature = "rustls")]
#[cfg_attr(docsrs, doc(cfg(feature = "rustls")))]
pub mod rustls;
#[cfg(feature = "native-tls")]
#[cfg_attr(docsrs, doc(cfg(feature = "native-tls")))]
pub mod native_tls;
pub use self::connection::Connection;
pub use self::connector::{Connector, ConnectorService};
2019-03-13 12:40:11 -07:00
pub use self::error::ConnectError;
pub use self::host::Host;
pub use self::info::ConnectInfo;
pub use self::resolve::Resolve;
pub use self::resolver::{Resolver, ResolverService};