Skip to main content

RetryExt

Trait RetryExt 

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

Extension trait for adding retry capability to futures.

Required Methods§

Source

fn with_retry( self, config: &RetryConfig, ) -> impl Future<Output = MovementResult<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".

Implementors§