pub struct RetryPolicy {
pub delays: Vec<Duration>,
pub max_retry_after: Duration,
pub attempt_timeout: Duration,
pub budget: Duration,
}Expand description
When to try again, and how long to wait.
Fields§
§delays: Vec<Duration>The wait before each retry: as many retries as there are waits.
max_retry_after: DurationThe longest Retry-After honoured; longer is cut to it.
attempt_timeout: DurationHow long one try may take before it counts as unanswered.
budget: DurationThe most one subscription’s tries and waits may take together: a retry that could overrun it is not made (10b-ii’s review, A1). Notices are delivered one after another, so a slow or silent push service must not hold the others up for minutes.
Trait Implementations§
Source§impl Clone for RetryPolicy
impl Clone for RetryPolicy
Source§impl Debug for RetryPolicy
impl Debug for RetryPolicy
Source§impl Default for RetryPolicy
impl Default for RetryPolicy
impl Eq for RetryPolicy
Source§impl PartialEq for RetryPolicy
impl PartialEq for RetryPolicy
impl StructuralPartialEq for RetryPolicy
Auto 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<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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