Trait RetriableError

Source
pub(super) trait RetriableError: StdError + Clone {
    // Required method
    fn should_retry(&self) -> bool;
}
Expand description

A trait for representing retriable errors.

Required Methods§

Source

fn should_retry(&self) -> bool

Whether this error is transient.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl RetriableError for TimeoutError

Implementors§