Skip to main content

hydra/
system_message.rs

1use crate::Dest;
2use crate::ExitReason;
3use crate::Node;
4use crate::Pid;
5use crate::Reference;
6
7/// A message sent from the hydra system.
8#[derive(Debug, Clone)]
9pub enum SystemMessage {
10    /// A process has exited with the given reason.
11    Exit(Pid, ExitReason),
12    /// A monitored process went down.
13    ProcessDown(Dest, Reference, ExitReason),
14    /// A monitored node went down.
15    NodeDown(Node, Reference),
16}