prettytty::err

Function should_retry

Source
pub fn should_retry<T, E>(result: Result<T, E>) -> bool
where E: Into<Error>,
Expand description

Determine whether an operation should be retried.

This function treats both interrupted and timed out operations as retryable.