Skip to main content

RetryPolicy

Trait RetryPolicy 

Source
pub trait RetryPolicy:
    Clone
    + Send
    + Sync
    + 'static {
    // Required method
    fn should_retry(&self, code: Code) -> bool;
}
Expand description

Determines whether a gRPC error should be retried.

Required Methods§

Source

fn should_retry(&self, code: Code) -> bool

Returns true if the operation should be retried for this error.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§