summaryrefslogtreecommitdiffhomepage
path: root/mullvad_daemon/src
diff options
context:
space:
mode:
authorLinus Färnstrand <linus@mullvad.net>2017-07-03 14:37:19 +0200
committerLinus Färnstrand <linus@mullvad.net>2017-07-03 14:37:19 +0200
commitb9287c9e230273d2bdf62e600b8eceb80938016b (patch)
treea09f5034f01d3cae51eb964dfb8269808aab77e0 /mullvad_daemon/src
parent9b8fcbe769dddce48983fb74e820324ec3e32a7d (diff)
downloadmullvadvpn-b9287c9e230273d2bdf62e600b8eceb80938016b.tar.xz
mullvadvpn-b9287c9e230273d2bdf62e600b8eceb80938016b.zip
Add documentation to DaemonEvent
Diffstat (limited to 'mullvad_daemon/src')
-rw-r--r--mullvad_daemon/src/main.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/mullvad_daemon/src/main.rs b/mullvad_daemon/src/main.rs
index 536de43012..e472abdab0 100644
--- a/mullvad_daemon/src/main.rs
+++ b/mullvad_daemon/src/main.rs
@@ -68,12 +68,19 @@ lazy_static! {
}
+/// All events that can happen in the daemon. Sent from various threads and exposed interfaces.
pub enum DaemonEvent {
+ /// An event coming from the tunnel software to indicate a change in state.
TunnelEvent(TunnelEvent),
+ /// Triggered by the thread waiting for the tunnel process. Means the tunnel process exited.
TunnelExit(tunnel::Result<()>),
+ /// Triggered by the thread waiting for a tunnel close operation to complete.
TunnelKill(io::Result<()>),
+ /// An event coming from the JSONRPC-2.0 management interface.
ManagementInterfaceEvent(TunnelCommand),
+ /// Triggered if the server hosting the JSONRPC-2.0 management interface dies unexpectedly.
ManagementInterfaceExit(talpid_ipc::Result<()>),
+ /// Daemon shutdown triggered by a signal, ctrl-c or similar.
Shutdown,
}