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§
Sourcefn with_retry(
self,
config: &RetryConfig,
) -> impl Future<Output = AptosResult<T>>
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.