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§
Sourcefn with_retry(self, policy: RetryPolicy) -> impl Future<Output = Result<T>>
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.