@@ -44,6 +44,14 @@ pub struct SslOpts {
4444impl SslOpts {
4545 /// Sets the client identity.
4646 #[ cfg( any( feature = "native-tls" , feature = "rustls" ) ) ]
47+ #[ cfg_attr(
48+ docsrs,
49+ doc( cfg( any(
50+ feature = "native-tls" ,
51+ feature = "rustls-tls" ,
52+ feature = "rustls-tls-ring"
53+ ) ) )
54+ ) ]
4755 pub fn with_client_identity ( mut self , identity : Option < ClientIdentity > ) -> Self {
4856 self . client_identity = identity;
4957 self
@@ -76,6 +84,14 @@ impl SslOpts {
7684 }
7785
7886 #[ cfg( any( feature = "native-tls" , feature = "rustls" ) ) ]
87+ #[ cfg_attr(
88+ docsrs,
89+ doc( cfg( any(
90+ feature = "native-tls" ,
91+ feature = "rustls-tls" ,
92+ feature = "rustls-tls-ring"
93+ ) ) )
94+ ) ]
7995 pub fn client_identity ( & self ) -> Option < & ClientIdentity > {
8096 self . client_identity . as_ref ( )
8197 }
@@ -141,13 +157,13 @@ pub(crate) struct InnerOpts {
141157 /// TCP keep alive interval between subsequent probe for mysql connection.
142158 ///
143159 /// Can be defined using `tcp_keepalive_probe_interval_secs` connection url parameter.
144- #[ cfg( any( target_os = "linux" , target_os = "macos" , ) ) ]
160+ #[ cfg( any( target_os = "linux" , target_os = "macos" ) ) ]
145161 tcp_keepalive_probe_interval_secs : Option < u32 > ,
146162
147163 /// TCP keep alive probe count for mysql connection.
148164 ///
149165 /// Can be defined using `tcp_keepalive_probe_count` connection url parameter.
150- #[ cfg( any( target_os = "linux" , target_os = "macos" , ) ) ]
166+ #[ cfg( any( target_os = "linux" , target_os = "macos" ) ) ]
151167 tcp_keepalive_probe_count : Option < u32 > ,
152168
153169 /// TCP_USER_TIMEOUT time for mysql connection.
0 commit comments