Skip to main content

RetryableError

Trait RetryableError 

Source
pub trait RetryableError {
    // Required method
    fn can_retry(&self) -> bool;
}
Expand description

Trait which may be implemented for error types to enable code reuse with EaseOff.

Required Methods§

Source

fn can_retry(&self) -> bool

Returns true if the error is non-fatal, false otherwise.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§