1
0
mirror of https://github.com/fafhrd91/actix-net synced 2025-08-22 02:45:43 +02:00

prepare actix-tls release 3.0.0-rc.1 (#423)

This commit is contained in:
Rob Ede
2021-11-30 12:34:46 +00:00
committed by GitHub
parent 5dc2bfcb01
commit 183bcf6ae3
10 changed files with 86 additions and 39 deletions

View File

@@ -21,13 +21,14 @@ use tokio_util::sync::ReusableBoxFuture;
use super::{connect_addrs::ConnectAddrs, error::ConnectError, ConnectInfo, Connection, Host};
/// TCP connector service factory.
#[derive(Debug, Copy, Clone)]
#[derive(Debug, Clone, Copy, Default)]
#[non_exhaustive]
pub struct TcpConnector;
impl TcpConnector {
/// Returns a new TCP connector service.
pub fn service(&self) -> TcpConnectorService {
TcpConnectorService
TcpConnectorService::default()
}
}
@@ -45,7 +46,8 @@ impl<R: Host> ServiceFactory<ConnectInfo<R>> for TcpConnector {
}
/// TCP connector service.
#[derive(Debug, Copy, Clone)]
#[derive(Debug, Copy, Clone, Default)]
#[non_exhaustive]
pub struct TcpConnectorService;
impl<R: Host> Service<ConnectInfo<R>> for TcpConnectorService {