pub trait RetryPolicy:
Send
+ Sync
+ 'static {
// Required method
fn should_retry(&self, ctx: &RetryContext) -> ControlFlow<(), Duration>;
}Expand description
Controls how the client reacts when an RPC call fails.
pub trait RetryPolicy:
Send
+ Sync
+ 'static {
// Required method
fn should_retry(&self, ctx: &RetryContext) -> ControlFlow<(), Duration>;
}Controls how the client reacts when an RPC call fails.