@@ -24,39 +24,36 @@ use tokio::io::{AsyncRead, AsyncWrite};
24
24
25
25
/// Properties required of a session.
26
26
#[ derive( Debug , Copy , Clone , PartialEq ) ]
27
+ #[ non_exhaustive]
27
28
pub enum TargetSessionAttrs {
28
29
/// No special properties are required.
29
30
Any ,
30
31
/// The session must allow writes.
31
32
ReadWrite ,
32
- #[ doc( hidden) ]
33
- __NonExhaustive,
34
33
}
35
34
36
35
/// TLS configuration.
37
36
#[ derive( Debug , Copy , Clone , PartialEq ) ]
37
+ #[ non_exhaustive]
38
38
pub enum SslMode {
39
39
/// Do not use TLS.
40
40
Disable ,
41
41
/// Attempt to connect with TLS but allow sessions without.
42
42
Prefer ,
43
43
/// Require the use of TLS.
44
44
Require ,
45
- #[ doc( hidden) ]
46
- __NonExhaustive,
47
45
}
48
46
49
47
/// Channel binding configuration.
50
48
#[ derive( Debug , Copy , Clone , PartialEq ) ]
49
+ #[ non_exhaustive]
51
50
pub enum ChannelBinding {
52
51
/// Do not use channel binding.
53
52
Disable ,
54
53
/// Attempt to use channel binding but allow sessions without.
55
54
Prefer ,
56
55
/// Require the use of channel binding.
57
56
Require ,
58
- #[ doc( hidden) ]
59
- __NonExhaustive,
60
57
}
61
58
62
59
#[ derive( Debug , Clone , PartialEq ) ]
@@ -121,7 +118,7 @@ pub(crate) enum Host {
121
118
/// # Url
122
119
///
123
120
/// 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
125
122
/// host/port pairs can be comma-separated. Unix socket paths in the host section of the URL should be percent-encoded,
126
123
/// as the path component of the URL specifies the database name.
127
124
///
@@ -425,7 +422,7 @@ impl Config {
425
422
426
423
/// Connects to a PostgreSQL database over an arbitrary stream.
427
424
///
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.
429
426
pub async fn connect_raw < S , T > (
430
427
& self ,
431
428
stream : S ,
0 commit comments