aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
+ }
+}