pub struct ExponentialBackoffDefinitionBuilder { /* private fields */ }Expand description
Builder for constructing an exponential backoff definition.
Implementations§
Source§impl ExponentialBackoffDefinitionBuilder
impl ExponentialBackoffDefinitionBuilder
Sourcepub fn with_factor(&mut self, factor: f64) -> &mut Self
pub fn with_factor(&mut self, factor: f64) -> &mut Self
Sets the exponential growth factor.
Sourcepub fn with_factor_and_max_delay(
&mut self,
factor: f64,
max_delay: &str,
) -> &mut Self
pub fn with_factor_and_max_delay( &mut self, factor: f64, max_delay: &str, ) -> &mut Self
Sets the exponential growth factor and maximum delay cap.
Sourcepub fn build(self) -> ExponentialBackoffDefinition
pub fn build(self) -> ExponentialBackoffDefinition
Builds the ExponentialBackoffDefinition.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ExponentialBackoffDefinitionBuilder
impl RefUnwindSafe for ExponentialBackoffDefinitionBuilder
impl Send for ExponentialBackoffDefinitionBuilder
impl Sync for ExponentialBackoffDefinitionBuilder
impl Unpin for ExponentialBackoffDefinitionBuilder
impl UnsafeUnpin for ExponentialBackoffDefinitionBuilder
impl UnwindSafe for ExponentialBackoffDefinitionBuilder
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