pub struct Retry {
pub max: u32,
pub base_delay_ms: u64,
pub retry_on: &'static [u16],
}Expand description
The retry policy the model attaches to a route: how many attempts, how long the first wait is, and which statuses are worth another try.
Fields§
§max: u32The most attempts the route is given, the first one included.
base_delay_ms: u64The wait before the second attempt, in milliseconds; later waits grow from it.
retry_on: &'static [u16]The statuses that are worth another attempt.
Trait Implementations§
impl Copy for Retry
impl Eq for Retry
impl StructuralPartialEq for Retry
Auto Trait Implementations§
impl Freeze for Retry
impl RefUnwindSafe for Retry
impl Send for Retry
impl Sync for Retry
impl Unpin for Retry
impl UnsafeUnpin for Retry
impl UnwindSafe for Retry
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.