pub struct ConstantBackoffDefinitionBuilder { /* private fields */ }Expand description
Builder for constructing a constant backoff definition.
Implementations§
Source§impl ConstantBackoffDefinitionBuilder
impl ConstantBackoffDefinitionBuilder
Sourcepub fn with_delay(&mut self, delay: &str) -> &mut Self
pub fn with_delay(&mut self, delay: &str) -> &mut Self
Sets the constant delay duration between retries.
Sourcepub fn build(self) -> ConstantBackoffDefinition
pub fn build(self) -> ConstantBackoffDefinition
Builds the ConstantBackoffDefinition.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ConstantBackoffDefinitionBuilder
impl RefUnwindSafe for ConstantBackoffDefinitionBuilder
impl Send for ConstantBackoffDefinitionBuilder
impl Sync for ConstantBackoffDefinitionBuilder
impl Unpin for ConstantBackoffDefinitionBuilder
impl UnsafeUnpin for ConstantBackoffDefinitionBuilder
impl UnwindSafe for ConstantBackoffDefinitionBuilder
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