| 216 | |
| 217 | impl std::fmt::Display for DispatchResult { |
| 218 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { |
| 219 | write!(f, "[{}] → {}", self.session_id, self.new_phase)?; |
| 220 | if let Some(ref outcome) = self.change_recorded { |
| 221 | write!(f, " ({})", outcome)?; |
| 222 | } |
| 223 | if let Some(ref incomplete) = self.incomplete { |
| 224 | write!(f, " (incomplete: {})", incomplete)?; |
| 225 | } |
| 226 | for warning in &self.warnings { |
| 227 | write!(f, " ⚠ {}", warning)?; |
| 228 | } |
| 229 | Ok(()) |
| 230 | } |
| 231 | } |
| 232 | |
| 233 | // ═══════════════════════════════════════════════════════════════════════ |