| 97 | /// Returns a human-readable label for Application Lifecycle activity context. |
| 98 | #[must_use] |
| 99 | pub fn lifecycle_label(self) -> &'static str { |
| 100 | match self { |
| 101 | Self::Unknown => "Unknown", |
| 102 | Self::Open => "Install", |
| 103 | Self::Close => "Remove", |
| 104 | Self::Reset => "Start", |
| 105 | Self::Fail => "Stop", |
| 106 | Self::Refuse => "Restart", |
| 107 | Self::Traffic => "Enable", |
| 108 | Self::Listen => "Disable", |
| 109 | Self::Trace => "Update", |
| 110 | Self::Patch | Self::Other => "Other", |
| 111 | } |
| 112 | } |
| 113 | |
| 114 | /// Returns a human-readable label for Config State Change activity context. |
| 115 | #[must_use] |