Struct temporal_sdk_core::protos::coresdk::common::RetryPolicy[][src]

pub struct RetryPolicy {
    pub initial_interval: Option<Duration>,
    pub backoff_coefficient: f64,
    pub maximum_interval: Option<Duration>,
    pub maximum_attempts: i32,
    pub non_retryable_error_types: Vec<String>,
}

Defines how an activity or workflow should be retried in the event of failure, timeout, etc.

Fields

initial_interval: Option<Duration>

Interval of the first retry. If backoff_coefficient is 1.0 then it is used for all retries.

backoff_coefficient: f64

Coefficient used to calculate the next retry interval. The next retry interval is previous interval multiplied by the coefficient. Must be 1 or larger.

maximum_interval: Option<Duration>

Maximum interval between retries. Exponential backoff leads to interval increase. This value caps that interval. Default is 100x of the initial interval.

maximum_attempts: i32

Maximum number of attempts. When exceeded, retrying will stop. 1 disables retries. 0 means unlimited retries (until the activity or workflow’s total timeout is reached).

non_retryable_error_types: Vec<String>

If a stringified error matches something in this list, retries will cease.

Trait Implementations

impl Clone for RetryPolicy[src]

impl Debug for RetryPolicy[src]

impl Default for RetryPolicy[src]

impl From<RetryPolicy> for RetryPolicy[src]

impl From<RetryPolicy> for RetryPolicy[src]

impl Message for RetryPolicy[src]

impl PartialEq<RetryPolicy> for RetryPolicy[src]

impl StructuralPartialEq for RetryPolicy[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> FutureExt for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]