pub enum ActivityBackoff {
Explicit(Vec<Duration>),
Exponential {
initial_interval: Duration,
coefficient: u32,
maximum_interval: Option<Duration>,
},
}Expand description
Backoff intervals for one durable activity retry policy.
Variants§
Explicit(Vec<Duration>)
Use these intervals between attempts. The server repeats the final interval if the retry budget contains more attempts than entries.
Exponential
Generate one interval for every retry using integer exponential growth.
Trait Implementations§
Source§impl Clone for ActivityBackoff
impl Clone for ActivityBackoff
Source§fn clone(&self) -> ActivityBackoff
fn clone(&self) -> ActivityBackoff
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ActivityBackoff
impl Debug for ActivityBackoff
impl Eq for ActivityBackoff
Source§impl PartialEq for ActivityBackoff
impl PartialEq for ActivityBackoff
impl StructuralPartialEq for ActivityBackoff
Auto Trait Implementations§
impl Freeze for ActivityBackoff
impl RefUnwindSafe for ActivityBackoff
impl Send for ActivityBackoff
impl Sync for ActivityBackoff
impl Unpin for ActivityBackoff
impl UnsafeUnpin for ActivityBackoff
impl UnwindSafe for ActivityBackoff
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