pub struct RetrySchedule { /* private fields */ }Expand description
Immutable, validated attempt and delay configuration shared by all transports.
Sharing or cloning a schedule never shares counters or a random stream. Each executing operation creates its own private runtime state.
Implementations§
Source§impl RetrySchedule
impl RetrySchedule
Sourcepub fn builder() -> RetryScheduleBuilder
pub fn builder() -> RetryScheduleBuilder
Start a builder with one immediate attempt and no jitter.
Sourcepub fn max_attempts(&self) -> u32
pub fn max_attempts(&self) -> u32
Return the total attempt limit, including the initial attempt.
Trait Implementations§
Source§impl Clone for RetrySchedule
impl Clone for RetrySchedule
Source§impl Debug for RetrySchedule
impl Debug for RetrySchedule
Source§impl Default for RetrySchedule
impl Default for RetrySchedule
Source§impl PartialEq for RetrySchedule
impl PartialEq for RetrySchedule
impl StructuralPartialEq for RetrySchedule
Auto Trait Implementations§
impl Forget for RetrySchedule
impl Freeze for RetrySchedule
impl Move for RetrySchedule
impl RefUnwindSafe for RetrySchedule
impl Send for RetrySchedule
impl Sync for RetrySchedule
impl Unpin for RetrySchedule
impl UnsafeUnpin for RetrySchedule
impl UnwindSafe for RetrySchedule
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