(self)
| 124 | /// Returns a human-readable label for Process Activity context. |
| 125 | #[must_use] |
| 126 | pub fn process_label(self) -> &'static str { |
| 127 | match self { |
| 128 | Self::Unknown => "Unknown", |
| 129 | Self::Open => "Launch", |
| 130 | Self::Close => "Terminate", |
| 131 | Self::Reset => "Open", |
| 132 | Self::Fail => "Inject", |
| 133 | Self::Refuse => "Set User ID", |
| 134 | _ => self.network_label(), |
| 135 | } |
| 136 | } |
| 137 | |
| 138 | #[must_use] |
| 139 | pub fn as_u8(self) -> u8 { |