pub struct GrpcRetryPolicy {
pub grpc_retry_events: Option<Vec<String>>,
pub http_retry_events: Option<Vec<String>>,
pub max_retries: i64,
pub per_retry_timeout: Duration,
pub tcp_retry_events: Option<Vec<String>>,
}Expand description
An object that represents a retry policy. Specify at least one value for at least one of the types of RetryEvents, a value for maxRetries, and a value for perRetryTimeout.
Fields§
§grpc_retry_events: Option<Vec<String>>Specify at least one of the valid values.
http_retry_events: Option<Vec<String>>Specify at least one of the following values.
<ul>
<li>
<p>
<b>server-error</b> – HTTP status codes 500, 501,
502, 503, 504, 505, 506, 507, 508, 510, and 511</p>
</li>
<li>
<p>
<b>gateway-error</b> – HTTP status codes 502,
503, and 504</p>
</li>
<li>
<p>
<b>client-error</b> – HTTP status code 409</p>
</li>
<li>
<p>
<b>stream-error</b> – Retry on refused
stream</p>
</li>
</ul>
max_retries: i64The maximum number of retry attempts.
per_retry_timeout: DurationAn object that represents a duration of time.
tcp_retry_events: Option<Vec<String>>Specify a valid value.
Trait Implementations§
Source§impl Clone for GrpcRetryPolicy
impl Clone for GrpcRetryPolicy
Source§fn clone(&self) -> GrpcRetryPolicy
fn clone(&self) -> GrpcRetryPolicy
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GrpcRetryPolicy
impl Debug for GrpcRetryPolicy
Source§impl Default for GrpcRetryPolicy
impl Default for GrpcRetryPolicy
Source§fn default() -> GrpcRetryPolicy
fn default() -> GrpcRetryPolicy
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GrpcRetryPolicy
impl<'de> Deserialize<'de> for GrpcRetryPolicy
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for GrpcRetryPolicy
impl PartialEq for GrpcRetryPolicy
Source§impl Serialize for GrpcRetryPolicy
impl Serialize for GrpcRetryPolicy
impl StructuralPartialEq for GrpcRetryPolicy
Auto Trait Implementations§
impl Freeze for GrpcRetryPolicy
impl RefUnwindSafe for GrpcRetryPolicy
impl Send for GrpcRetryPolicy
impl Sync for GrpcRetryPolicy
impl Unpin for GrpcRetryPolicy
impl UnwindSafe for GrpcRetryPolicy
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more