Returns `true` if this error is recoverable and the operation can be retried.
(&self)
| 354 | impl AgentError { |
| 355 | /// Returns `true` if this error is recoverable and the operation can be retried. |
| 356 | pub fn is_recoverable(&self) -> bool { |
| 357 | matches!( |
| 358 | self, |
| 359 | AgentError::WatchmanNotRunning |
| 360 | | AgentError::WatchmanConnectionFailed { .. } |
| 361 | | AgentError::WatchmanQueryFailed { .. } |
| 362 | | AgentError::CaptureInvalid { .. } |
| 363 | | AgentError::TurnAlreadyActive { .. } |
| 364 | ) |
| 365 | } |
| 366 | |
| 367 | /// Returns `true` if this error indicates Watchman is unavailable |
| 368 | /// and the fallback watcher should be used. |
nothing calls this directly
no outgoing calls
no test coverage detected