Skip to main content

RetryPolicy

Trait RetryPolicy 

Source
pub trait RetryPolicy:
    Send
    + Sync
    + 'static {
    // Required method
    fn should_retry(&self, ctx: &RetryContext<'_>) -> Option<&'static str>;
}

Required Methods§

Source

fn should_retry(&self, ctx: &RetryContext<'_>) -> Option<&'static str>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T> RetryPolicy for Arc<T>
where T: RetryPolicy + ?Sized,

Source§

fn should_retry(&self, ctx: &RetryContext<'_>) -> Option<&'static str>

Implementors§