mirror of
https://github.com/fafhrd91/actix-net
synced 2025-08-25 09:06:03 +02:00
add default type parameter
This commit is contained in:
@@ -13,7 +13,7 @@ use crate::{Io, Protocol, ServerConfig};
|
|||||||
/// Support `SSL` connections via native-tls package
|
/// Support `SSL` connections via native-tls package
|
||||||
///
|
///
|
||||||
/// `tls` feature enables `NativeTlsAcceptor` type
|
/// `tls` feature enables `NativeTlsAcceptor` type
|
||||||
pub struct NativeTlsAcceptor<T, P> {
|
pub struct NativeTlsAcceptor<T, P = ()> {
|
||||||
acceptor: TlsAcceptor,
|
acceptor: TlsAcceptor,
|
||||||
io: PhantomData<(T, P)>,
|
io: PhantomData<(T, P)>,
|
||||||
}
|
}
|
||||||
|
@@ -13,7 +13,7 @@ use crate::{Io, Protocol, ServerConfig};
|
|||||||
/// Support `SSL` connections via openssl package
|
/// Support `SSL` connections via openssl package
|
||||||
///
|
///
|
||||||
/// `ssl` feature enables `OpensslAcceptor` type
|
/// `ssl` feature enables `OpensslAcceptor` type
|
||||||
pub struct OpensslAcceptor<T, P> {
|
pub struct OpensslAcceptor<T, P = ()> {
|
||||||
acceptor: SslAcceptor,
|
acceptor: SslAcceptor,
|
||||||
io: PhantomData<(T, P)>,
|
io: PhantomData<(T, P)>,
|
||||||
}
|
}
|
||||||
|
@@ -15,7 +15,7 @@ use crate::{Io, Protocol, ServerConfig as SrvConfig};
|
|||||||
/// Support `SSL` connections via rustls package
|
/// Support `SSL` connections via rustls package
|
||||||
///
|
///
|
||||||
/// `rust-tls` feature enables `RustlsAcceptor` type
|
/// `rust-tls` feature enables `RustlsAcceptor` type
|
||||||
pub struct RustlsAcceptor<T, P> {
|
pub struct RustlsAcceptor<T, P = ()> {
|
||||||
config: Arc<ServerConfig>,
|
config: Arc<ServerConfig>,
|
||||||
io: PhantomData<(T, P)>,
|
io: PhantomData<(T, P)>,
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user