pub trait RetryPolicy:
Send
+ Sync
+ 'static {
// Required method
fn should_retry(&self, ctx: &RetryContext<'_>) -> Option<&'static str>;
}Required Methods§
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".