pub struct ExponentialBackoffDefinition {
pub definition: Option<HashMap<String, Value>>,
}Expand description
Represents the definition of an exponential backoff
Fields§
§definition: Option<HashMap<String, Value>>Gets/sets the definition of the exponential backoff parameters (e.g., {“factor”: 2, “maxDelay”: “PT30S”})
Implementations§
Source§impl ExponentialBackoffDefinition
impl ExponentialBackoffDefinition
Sourcepub fn with_factor(factor: f64) -> Self
pub fn with_factor(factor: f64) -> Self
Creates an exponential backoff with a factor
Sourcepub fn with_factor_and_max_delay(factor: f64, max_delay: &str) -> Self
pub fn with_factor_and_max_delay(factor: f64, max_delay: &str) -> Self
Creates an exponential backoff with a factor and max delay
Trait Implementations§
Source§impl Clone for ExponentialBackoffDefinition
impl Clone for ExponentialBackoffDefinition
Source§fn clone(&self) -> ExponentialBackoffDefinition
fn clone(&self) -> ExponentialBackoffDefinition
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ExponentialBackoffDefinition
impl Debug for ExponentialBackoffDefinition
Source§impl Default for ExponentialBackoffDefinition
impl Default for ExponentialBackoffDefinition
Source§fn default() -> ExponentialBackoffDefinition
fn default() -> ExponentialBackoffDefinition
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ExponentialBackoffDefinition
impl<'de> Deserialize<'de> for ExponentialBackoffDefinition
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 ExponentialBackoffDefinition
impl PartialEq for ExponentialBackoffDefinition
Source§fn eq(&self, other: &ExponentialBackoffDefinition) -> bool
fn eq(&self, other: &ExponentialBackoffDefinition) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ExponentialBackoffDefinition
Auto Trait Implementations§
impl Freeze for ExponentialBackoffDefinition
impl RefUnwindSafe for ExponentialBackoffDefinition
impl Send for ExponentialBackoffDefinition
impl Sync for ExponentialBackoffDefinition
impl Unpin for ExponentialBackoffDefinition
impl UnsafeUnpin for ExponentialBackoffDefinition
impl UnwindSafe for ExponentialBackoffDefinition
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