Skip to main content

RetryExt

Trait RetryExt 

Source
pub trait RetryExt<T> {
    // Required method
    fn with_retry(
        self,
        config: &RetryConfig,
    ) -> impl Future<Output = AptosResult<T>>;
}
Expand description

Extension trait for adding retry capability to futures.

Required Methods§

Source

fn with_retry( self, config: &RetryConfig, ) -> impl Future<Output = AptosResult<T>>

Executes this future with the given retry config.

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§