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:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user