pub trait RetryableError {
// Required method
fn is_retryable(&self) -> bool;
// Provided method
fn retry_after(&self) -> Option<Duration> { ... }
}Expand description
Determines if an error should be retried
Required Methods§
Sourcefn is_retryable(&self) -> bool
fn is_retryable(&self) -> bool
Returns true if the error is transient and the operation should be retried
Provided Methods§
Sourcefn retry_after(&self) -> Option<Duration>
fn retry_after(&self) -> Option<Duration>
Returns the retry-after duration if specified by the error