1
0
mirror of https://github.com/fafhrd91/actix-net synced 2024-11-27 18:02:58 +01:00

add default type parameter

This commit is contained in:
Nikolay Kim 2019-03-11 13:48:55 -07:00
parent ad50595ece
commit 5567fb41d2
3 changed files with 3 additions and 3 deletions

View File

@ -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)>,
} }

View File

@ -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)>,
} }

View File

@ -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)>,
} }