RetryableError

Trait RetryableError 

Source
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§

Source

fn is_retryable(&self) -> bool

Returns true if the error is transient and the operation should be retried

Provided Methods§

Source

fn retry_reason(&self) -> &str

Returns a human-readable description of why the error is/isn’t retryable

Implementors§