Returns `true` if this error indicates Watchman is unavailable and the fallback watcher should be used.
(&self)
| 367 | /// Returns `true` if this error indicates Watchman is unavailable |
| 368 | /// and the fallback watcher should be used. |
| 369 | pub fn is_watchman_unavailable(&self) -> bool { |
| 370 | matches!( |
| 371 | self, |
| 372 | AgentError::WatchmanNotRunning | AgentError::WatchmanConnectionFailed { .. } |
| 373 | ) |
| 374 | } |
| 375 | |
| 376 | /// Returns `true` if this error is a session state machine violation |
| 377 | /// that might indicate a crashed or interrupted agent. |
nothing calls this directly
no outgoing calls
no test coverage detected