pub trait RetryableError {
// Required method
fn is_retryable(&self) -> bool;
// Provided method
fn retry_reason(&self) -> &str { ... }
}Expand description
Trait for errors that can 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_reason(&self) -> &str
fn retry_reason(&self) -> &str
Returns a human-readable description of why the error is/isn’t retryable