pub struct LinearBackoffConfig {
pub base_delay: Duration,
pub increment: Duration,
pub max_delay: Duration,
}Expand description
Linear backoff configuration
Fields§
§base_delay: DurationBase delay for first retry
increment: DurationIncrement for each retry
max_delay: DurationMaximum delay between retries
Trait Implementations§
Source§impl Clone for LinearBackoffConfig
impl Clone for LinearBackoffConfig
Source§fn clone(&self) -> LinearBackoffConfig
fn clone(&self) -> LinearBackoffConfig
Returns a duplicate 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 moreSource§impl Debug for LinearBackoffConfig
impl Debug for LinearBackoffConfig
Source§impl Default for LinearBackoffConfig
impl Default for LinearBackoffConfig
Source§impl<'de> Deserialize<'de> for LinearBackoffConfig
impl<'de> Deserialize<'de> for LinearBackoffConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for LinearBackoffConfig
impl PartialEq for LinearBackoffConfig
Source§impl Serialize for LinearBackoffConfig
impl Serialize for LinearBackoffConfig
impl StructuralPartialEq for LinearBackoffConfig
Auto Trait Implementations§
impl Freeze for LinearBackoffConfig
impl RefUnwindSafe for LinearBackoffConfig
impl Send for LinearBackoffConfig
impl Sync for LinearBackoffConfig
impl Unpin for LinearBackoffConfig
impl UnwindSafe for LinearBackoffConfig
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