Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
is_desynchronized
1 parent 64286d0 commit b171da3Copy full SHA for b171da3
tokio-postgres/src/lib.rs
@@ -1136,6 +1136,15 @@ impl Connection {
1136
pub fn parameter(&self, param: &str) -> Option<&str> {
1137
self.0.parameters.get(param).map(|s| &**s)
1138
}
1139
+
1140
+ /// Returns whether or not the stream has been desynchronized due to an
1141
+ /// error in the communication channel with the server.
1142
+ ///
1143
+ /// If this has occurred, all further queries will immediately return an
1144
+ /// error.
1145
+ pub fn is_desynchronized(&self) -> bool {
1146
+ self.0.desynchronized
1147
+ }
1148
1149
1150
/// A stream of asynchronous Postgres notifications.
0 commit comments