pub trait RetryPolicy:
Send
+ Sync
+ 'static {
// Required method
fn should_retry(&self, ctx: &RetryContext<'_>) -> Option<&'static str>;
// Provided method
fn should_retry_response(
&self,
_ctx: &ResponseRetryContext<'_>,
) -> Option<&'static str> { ... }
}Required Methods§
fn should_retry(&self, ctx: &RetryContext<'_>) -> Option<&'static str>
Provided Methods§
fn should_retry_response( &self, _ctx: &ResponseRetryContext<'_>, ) -> Option<&'static str>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".