@@ -301,15 +301,15 @@ mod ssl_config {
301301 // for the particular node. (The SslConfig must be different, because SNIs differ for different nodes.)
302302 // Thenceforth, all connections to that node share the same SslConfig.
303303 #[ derive( Clone ) ]
304- pub struct SslConfig {
304+ pub ( crate ) struct SslConfig {
305305 context : SslContext ,
306306 #[ cfg( feature = "cloud" ) ]
307307 sni : Option < String > ,
308308 }
309309
310310 impl SslConfig {
311311 // Used in case when the user provided their own SslContext to be used in all connections.
312- pub fn new_with_global_context ( context : SslContext ) -> Self {
312+ pub ( crate ) fn new_with_global_context ( context : SslContext ) -> Self {
313313 Self {
314314 context,
315315 #[ cfg( feature = "cloud" ) ]
@@ -349,24 +349,24 @@ mod ssl_config {
349349}
350350
351351#[ derive( Clone ) ]
352- pub struct ConnectionConfig {
353- pub compression : Option < Compression > ,
354- pub tcp_nodelay : bool ,
355- pub tcp_keepalive_interval : Option < Duration > ,
352+ pub ( crate ) struct ConnectionConfig {
353+ pub ( crate ) compression : Option < Compression > ,
354+ pub ( crate ) tcp_nodelay : bool ,
355+ pub ( crate ) tcp_keepalive_interval : Option < Duration > ,
356356 #[ cfg( feature = "ssl" ) ]
357- pub ssl_config : Option < SslConfig > ,
358- pub connect_timeout : std:: time:: Duration ,
357+ pub ( crate ) ssl_config : Option < SslConfig > ,
358+ pub ( crate ) connect_timeout : std:: time:: Duration ,
359359 // should be Some only in control connections,
360- pub event_sender : Option < mpsc:: Sender < Event > > ,
361- pub default_consistency : Consistency ,
360+ pub ( crate ) event_sender : Option < mpsc:: Sender < Event > > ,
361+ pub ( crate ) default_consistency : Consistency ,
362362 #[ cfg( feature = "cloud" ) ]
363363 pub ( crate ) cloud_config : Option < Arc < CloudConfig > > ,
364- pub authenticator : Option < Arc < dyn AuthenticatorProvider > > ,
365- pub address_translator : Option < Arc < dyn AddressTranslator > > ,
366- pub enable_write_coalescing : bool ,
364+ pub ( crate ) authenticator : Option < Arc < dyn AuthenticatorProvider > > ,
365+ pub ( crate ) address_translator : Option < Arc < dyn AddressTranslator > > ,
366+ pub ( crate ) enable_write_coalescing : bool ,
367367
368- pub keepalive_interval : Option < Duration > ,
369- pub keepalive_timeout : Option < Duration > ,
368+ pub ( crate ) keepalive_interval : Option < Duration > ,
369+ pub ( crate ) keepalive_timeout : Option < Duration > ,
370370}
371371
372372impl Default for ConnectionConfig {
@@ -395,7 +395,7 @@ impl Default for ConnectionConfig {
395395
396396impl ConnectionConfig {
397397 #[ cfg( feature = "ssl" ) ]
398- pub fn is_ssl ( & self ) -> bool {
398+ fn is_ssl ( & self ) -> bool {
399399 #[ cfg( feature = "cloud" ) ]
400400 if self . cloud_config . is_some ( ) {
401401 return true ;
@@ -404,7 +404,7 @@ impl ConnectionConfig {
404404 }
405405
406406 #[ cfg( not( feature = "ssl" ) ) ]
407- pub fn is_ssl ( & self ) -> bool {
407+ fn is_ssl ( & self ) -> bool {
408408 false
409409 }
410410}
0 commit comments