Struct gitlab::api::retry::BackoffBuilder
source · pub struct BackoffBuilder { /* private fields */ }Expand description
Builder for Backoff.
Implementations§
source§impl BackoffBuilder
impl BackoffBuilder
sourcepub fn limit(&mut self, value: usize) -> &mut Self
pub fn limit(&mut self, value: usize) -> &mut Self
The maximum number of times to backoff.
Defaults to 5.
sourcepub fn init(&mut self, value: Duration) -> &mut Self
pub fn init(&mut self, value: Duration) -> &mut Self
How long to wait after the first failure.
Defaults to 1 second.
Trait Implementations§
source§impl Clone for BackoffBuilder
impl Clone for BackoffBuilder
source§fn clone(&self) -> BackoffBuilder
fn clone(&self) -> BackoffBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl RefUnwindSafe for BackoffBuilder
impl Send for BackoffBuilder
impl Sync for BackoffBuilder
impl Unpin for BackoffBuilder
impl UnwindSafe for BackoffBuilder
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