pub struct ExponentialBackoffConfig {
pub base_delay: Duration,
pub max_delay: Duration,
pub multiplier: u32,
}Expand description
Exponential backoff configuration
Fields§
§base_delay: DurationBase delay for first retry
max_delay: DurationMaximum delay between retries
multiplier: u32Multiplier for each retry
Trait Implementations§
Source§impl Clone for ExponentialBackoffConfig
impl Clone for ExponentialBackoffConfig
Source§fn clone(&self) -> ExponentialBackoffConfig
fn clone(&self) -> ExponentialBackoffConfig
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 ExponentialBackoffConfig
impl Debug for ExponentialBackoffConfig
Source§impl Default for ExponentialBackoffConfig
impl Default for ExponentialBackoffConfig
Source§impl<'de> Deserialize<'de> for ExponentialBackoffConfig
impl<'de> Deserialize<'de> for ExponentialBackoffConfig
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 ExponentialBackoffConfig
impl PartialEq for ExponentialBackoffConfig
Source§impl Serialize for ExponentialBackoffConfig
impl Serialize for ExponentialBackoffConfig
impl StructuralPartialEq for ExponentialBackoffConfig
Auto Trait Implementations§
impl Freeze for ExponentialBackoffConfig
impl RefUnwindSafe for ExponentialBackoffConfig
impl Send for ExponentialBackoffConfig
impl Sync for ExponentialBackoffConfig
impl Unpin for ExponentialBackoffConfig
impl UnwindSafe for ExponentialBackoffConfig
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