@@ -5,10 +5,7 @@ use std::time::Duration;
55
66use serde:: Deserialize ;
77
8- use crate :: {
9- client:: options:: { DriverInfo , ServerApi , TlsOptions } ,
10- options:: ServerAddress ,
11- } ;
8+ use crate :: options:: ServerAddress ;
129
1310/// We implement `Deserialize` for all of the event types so that we can more easily parse the CMAP
1411/// spec tests. However, we have no need to parse the address field from the JSON files (if it's
@@ -41,20 +38,6 @@ pub struct PoolCreatedEvent {
4138#[ serde( rename_all = "camelCase" ) ]
4239#[ non_exhaustive]
4340pub struct ConnectionPoolOptions {
44- /// The application name specified by the user. This is sent to the server as part of the
45- /// handshake that each connection makes when it's created.
46- pub app_name : Option < String > ,
47-
48- /// The connect timeout passed to each underlying TcpStream when attempting to connect to the
49- /// server.
50- #[ serde( skip) ]
51- pub connect_timeout : Option < Duration > ,
52-
53- /// Extra information to append to the driver version in the metadata of the handshake with the
54- /// server. This should be used by libraries wrapping the driver, e.g. ODMs.
55- #[ serde( skip) ]
56- pub driver_info : Option < DriverInfo > ,
57-
5841 /// Connections that have been ready for usage in the pool for longer than `max_idle_time` will
5942 /// not be used.
6043 ///
@@ -76,18 +59,6 @@ pub struct ConnectionPoolOptions {
7659 ///
7760 /// The default is that no minimum is enforced
7861 pub min_pool_size : Option < u32 > ,
79-
80- /// The declared API version
81- ///
82- /// The default value is to have no declared API version
83- pub ( crate ) server_api : Option < ServerApi > ,
84-
85- /// The options specifying how a TLS connection should be configured. If `tls_options` is
86- /// `None`, then TLS will not be used for the connections.
87- ///
88- /// The default is not to use TLS for connections.
89- #[ serde( skip) ]
90- pub tls_options : Option < TlsOptions > ,
9162}
9263
9364/// Event emitted when a connection pool becomes ready.
0 commit comments