pub struct RetryBackoff {
pub initial: Duration,
pub max: Duration,
pub multiplier: f64,
pub max_attempts: u32,
}Fields§
§initial: Duration§max: Duration§multiplier: f64§max_attempts: u320 means retry forever.
Trait Implementations§
Source§impl Clone for RetryBackoff
impl Clone for RetryBackoff
Source§impl Debug for RetryBackoff
impl Debug for RetryBackoff
Source§impl Default for RetryBackoff
impl Default for RetryBackoff
Source§impl<'de> Deserialize<'de> for RetryBackoffwhere
RetryBackoff: Default,
impl<'de> Deserialize<'de> for RetryBackoffwhere
RetryBackoff: Default,
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
Auto Trait Implementations§
impl Freeze for RetryBackoff
impl RefUnwindSafe for RetryBackoff
impl Send for RetryBackoff
impl Sync for RetryBackoff
impl Unpin for RetryBackoff
impl UnsafeUnpin for RetryBackoff
impl UnwindSafe for RetryBackoff
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