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