(&self)
| 26 | #[doc(hidden)] |
| 27 | #[inline] |
| 28 | pub fn is_exit_notification(&self) -> bool { |
| 29 | if let Message::Notification(notification) = self { |
| 30 | matches!(notification.method.as_str(), "exit") |
| 31 | } else { |
| 32 | false |
| 33 | } |
| 34 | } |
| 35 | |
| 36 | #[doc(hidden)] |
| 37 | #[inline] |