pub struct OperationRetryerBuilder { /* private fields */ }
Implementations§
Source§impl OperationRetryerBuilder
impl OperationRetryerBuilder
pub fn new() -> Self
Sourcepub fn with_timer(self, timer: Box<dyn Timer>) -> Self
pub fn with_timer(self, timer: Box<dyn Timer>) -> Self
With a runtime timer to use for sleeping.
pub fn with_default_timeout(self, timeout: Duration) -> Self
pub fn with_max_retry_interval(self, interval: Duration) -> Self
pub fn build(self) -> OperationRetryer
Trait Implementations§
Source§impl Default for OperationRetryerBuilder
impl Default for OperationRetryerBuilder
Source§fn default() -> OperationRetryerBuilder
fn default() -> OperationRetryerBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for OperationRetryerBuilder
impl !RefUnwindSafe for OperationRetryerBuilder
impl Send for OperationRetryerBuilder
impl Sync for OperationRetryerBuilder
impl Unpin for OperationRetryerBuilder
impl !UnwindSafe for OperationRetryerBuilder
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