aboutsummaryrefslogtreecommitdiff
path: root/src/connection_options.rs
diff options
context:
space:
mode:
authorLibravatar Daniel López Azaña <daniloaz@gmail.com>2024-04-04 15:39:55 +0200
committerLibravatar Daniel López Azaña <daniloaz@gmail.com>2024-04-04 15:39:55 +0200
commit023758b3b5892faf0f82fff6013bcf21b1198756 (patch)
tree255edbd8d8727a854477c0fcdbd5d002f982b318 /src/connection_options.rs
parent2565f3be410c71c35e0d70bbea1c7be627f4ecd2 (diff)
✨ (connection_options.rs): Add get_send_sync method for ConnectionOptions
♻️ (ls_client.rs): Refactor message processing to handle multiple submessages 🐛 (ls_client.rs): Fix default instantiation of ConnectionOptions using default method
Diffstat (limited to 'src/connection_options.rs')
-rw-r--r--src/connection_options.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/connection_options.rs b/src/connection_options.rs
index e3218df..e9b3ab0 100644
--- a/src/connection_options.rs
+++ b/src/connection_options.rs
@@ -239,6 +239,13 @@ impl ConnectionOptions {
self.reverse_heartbeat_interval
}
+ /// Inquiry method that gets if LS_send_sync is to be sent to the server.
+ /// If set to false, instructs the Server not to send the SYNC notifications on this connection.
+ /// If omitted, the default is true.
+ pub fn get_send_sync(&self) -> bool {
+ self.send_sync
+ }
+
/// Inquiry method that gets the maximum time allowed for attempts to recover the current session
/// upon an interruption, after which a new session will be created. A 0 value also means that
/// any attempt to recover the current session is prevented in the first place.