pub trait RetryableError<SP = NotSpecialized>:
Error
+ MaybeSend
+ MaybeSync {
// Required method
fn is_retryable(&self) -> bool;
// Provided method
fn rate_limit_delay(&self) -> Option<Duration> { ... }
}Expand description
Specifies which errors are retryable. All Errors are not retryable by-default.
Required Methods§
fn is_retryable(&self) -> bool
Provided Methods§
Sourcefn rate_limit_delay(&self) -> Option<Duration>
fn rate_limit_delay(&self) -> Option<Duration>
The least time to wait before a retry, when the error says so. A
rate-limit rejection carries one; [retry_async!] never retries sooner.