pub struct RetryPolicy<'a> {
pub budget: Duration,
pub on_wait: &'a dyn Fn() -> bool,
}Expand description
How long a publish retries a step refused by another program’s open handle.
Fields§
§budget: DurationTime from the first try after which no retry starts. Zero tries once.
on_wait: &'a dyn Fn() -> boolCalled before each wait; false stops and returns the last error.
Implementations§
Source§impl RetryPolicy<'static>
impl RetryPolicy<'static>
Trait Implementations§
Source§impl<'a> Clone for RetryPolicy<'a>
impl<'a> Clone for RetryPolicy<'a>
impl<'a> Copy for RetryPolicy<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for RetryPolicy<'a>
impl<'a> !Send for RetryPolicy<'a>
impl<'a> !Sync for RetryPolicy<'a>
impl<'a> !UnwindSafe for RetryPolicy<'a>
impl<'a> Freeze for RetryPolicy<'a>
impl<'a> Unpin for RetryPolicy<'a>
impl<'a> UnsafeUnpin for RetryPolicy<'a>
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