Retryable

Trait Retryable 

Source
pub trait Retryable<T, E> {
    // Required method
    fn with_retry(self, policy: RetryPolicy) -> impl Future<Output = Result<T>>;
}
Expand description

Trait for retryable operations

Required Methods§

Source

fn with_retry(self, policy: RetryPolicy) -> impl Future<Output = Result<T>>

Execute with retry policy

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.

Implementors§