@@ -24,39 +24,36 @@ use tokio::io::{AsyncRead, AsyncWrite};
2424
2525/// Properties required of a session.
2626#[ derive( Debug , Copy , Clone , PartialEq ) ]
27+ #[ non_exhaustive]
2728pub enum TargetSessionAttrs {
2829 /// No special properties are required.
2930 Any ,
3031 /// The session must allow writes.
3132 ReadWrite ,
32- #[ doc( hidden) ]
33- __NonExhaustive,
3433}
3534
3635/// TLS configuration.
3736#[ derive( Debug , Copy , Clone , PartialEq ) ]
37+ #[ non_exhaustive]
3838pub enum SslMode {
3939 /// Do not use TLS.
4040 Disable ,
4141 /// Attempt to connect with TLS but allow sessions without.
4242 Prefer ,
4343 /// Require the use of TLS.
4444 Require ,
45- #[ doc( hidden) ]
46- __NonExhaustive,
4745}
4846
4947/// Channel binding configuration.
5048#[ derive( Debug , Copy , Clone , PartialEq ) ]
49+ #[ non_exhaustive]
5150pub enum ChannelBinding {
5251 /// Do not use channel binding.
5352 Disable ,
5453 /// Attempt to use channel binding but allow sessions without.
5554 Prefer ,
5655 /// Require the use of channel binding.
5756 Require ,
58- #[ doc( hidden) ]
59- __NonExhaustive,
6057}
6158
6259#[ derive( Debug , Clone , PartialEq ) ]
@@ -121,7 +118,7 @@ pub(crate) enum Host {
121118/// # Url
122119///
123120/// This format resembles a URL with a scheme of either `postgres://` or `postgresql://`. All components are optional,
124- /// and the format accept query parameters for all of the key-value pairs described in the section above. Multiple
121+ /// and the format accepts query parameters for all of the key-value pairs described in the section above. Multiple
125122/// host/port pairs can be comma-separated. Unix socket paths in the host section of the URL should be percent-encoded,
126123/// as the path component of the URL specifies the database name.
127124///
@@ -425,7 +422,7 @@ impl Config {
425422
426423 /// Connects to a PostgreSQL database over an arbitrary stream.
427424 ///
428- /// All of the settings other than `user`, `password`, `dbname`, `options`, and `application ` name are ignored.
425+ /// All of the settings other than `user`, `password`, `dbname`, `options`, and `application_name ` name are ignored.
429426 pub async fn connect_raw < S , T > (
430427 & self ,
431428 stream : S ,
0 commit comments