pub struct RetryPolicy {
pub initial_interval: Duration,
pub backoff_coefficient: f64,
pub maximum_attempts: u32,
pub maximum_interval: Duration,
pub non_retryable_errors: Vec<String>,
}Expand description
Retry policy for durable activities.
Fields§
§initial_interval: DurationInitial delay before first retry.
backoff_coefficient: f64Multiplier for exponential backoff.
maximum_attempts: u32Maximum number of retry attempts.
maximum_interval: DurationMaximum delay between retries.
non_retryable_errors: Vec<String>Error types that should not be retried.
Trait Implementations§
Source§impl Clone for RetryPolicy
impl Clone for RetryPolicy
Source§fn clone(&self) -> RetryPolicy
fn clone(&self) -> RetryPolicy
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 moreAuto Trait Implementations§
impl Freeze for RetryPolicy
impl RefUnwindSafe for RetryPolicy
impl Send for RetryPolicy
impl Sync for RetryPolicy
impl Unpin for RetryPolicy
impl UnsafeUnpin for RetryPolicy
impl UnwindSafe for RetryPolicy
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