pub fn should_retry<T, E>(result: Result<T, E>) -> boolwhere E: Into<Error>,
Determine whether an operation should be retried.
This function treats both interrupted and timed out operations as retryable.