aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHimbeerserverDE <himbeerserverde@gmail.com>2022-10-21 17:56:52 +0200
committerHimbeerserverDE <himbeerserverde@gmail.com>2022-10-21 17:56:52 +0200
commit0ac60164921e4a95f0eeb8818858863e5107711f (patch)
treedab87c0e381f8e3c58a3fe1bd12aa94a7d8a0a9f
parentad92a218c34a08d33cd82ed2c339276b663e0060 (diff)
add logout call
-rw-r--r--src/call/account.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/call/account.rs b/src/call/account.rs
index c2434a7..f35ab00 100644
--- a/src/call/account.rs
+++ b/src/call/account.rs
@@ -18,3 +18,13 @@ impl From<Login<'_>> for xmlrpc::Value {
xmlrpc::Value::Struct(map)
}
}
+
+// Contains no information. This just signals to the server
+// that it should end the session.
+pub(crate) struct Logout;
+
+impl From<Logout> for xmlrpc::Value {
+ fn from(_logout: Logout) -> Self {
+ xmlrpc::Value::Nil
+ }
+}