pub trait RetryableGrpc<T> {
// Required method
fn retry_transient(self) -> impl Future<Output = Result<T, Status>>;
}Expand description
Retries a gRPC call with the node’s standard policy for transient connection failures.
It is implemented for closures that start the call rather than for the call’s future, since each attempt needs a fresh request future.
Required Methods§
Sourcefn retry_transient(self) -> impl Future<Output = Result<T, Status>>
fn retry_transient(self) -> impl Future<Output = Result<T, Status>>
Retries the call up to ten times with exponential backoff from 100 ms to 2 s while it fails
with an error accepted by is_retryable_grpc_error.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".