Returns `true` if this action requires strategy-specific handling. "Common" actions (`UpdateInteraction`, `ClearEndedAt`) are applied directly to the session state by `apply_common_actions()`. Strategy-specific actions are returned to the caller for dispatch.
(&self)
| 288 | /// directly to the session state by `apply_common_actions()`. |
| 289 | /// Strategy-specific actions are returned to the caller for dispatch. |
| 290 | pub fn is_strategy_specific(&self) -> bool { |
| 291 | matches!( |
| 292 | self, |
| 293 | Action::RecordTurn |
| 294 | | Action::RecordIfChanged |
| 295 | | Action::DiscardIfNoFiles |
| 296 | | Action::WarnStaleSession |
| 297 | ) |
| 298 | } |
| 299 | |
| 300 | /// Returns the canonical string representation. |
| 301 | pub fn as_str(&self) -> &'static str { |