pub enum BackoffConfig {
Constant(ConstantBackoffConfig),
Exponential(ExponentialBackoffConfig),
Fibonacci(FibonacciBackoffConfig),
NoBackoff,
}Expand description
Configuration for Backoff.
Variants§
Constant(ConstantBackoffConfig)
Configuration for Backoff::Constant.
Exponential(ExponentialBackoffConfig)
Configuration for Backoff::Exponential.
Fibonacci(FibonacciBackoffConfig)
Configuration for Backoff::Fibonacci.
NoBackoff
Configuration for Backoff::NoBackoff.
Trait Implementations§
Source§impl BackoffBuilder for BackoffConfig
impl BackoffBuilder for BackoffConfig
Source§impl Clone for BackoffConfig
impl Clone for BackoffConfig
Source§fn clone(&self) -> BackoffConfig
fn clone(&self) -> BackoffConfig
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 BackoffConfig
impl Debug for BackoffConfig
Source§impl<'de> Deserialize<'de> for BackoffConfig
impl<'de> Deserialize<'de> for BackoffConfig
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 From<ConstantBackoffConfig> for BackoffConfig
impl From<ConstantBackoffConfig> for BackoffConfig
Source§fn from(config: ConstantBackoffConfig) -> BackoffConfig
fn from(config: ConstantBackoffConfig) -> BackoffConfig
Converts to this type from the input type.
Source§impl From<ExponentialBackoffConfig> for BackoffConfig
impl From<ExponentialBackoffConfig> for BackoffConfig
Source§fn from(config: ExponentialBackoffConfig) -> BackoffConfig
fn from(config: ExponentialBackoffConfig) -> BackoffConfig
Converts to this type from the input type.
Source§impl From<FibonacciBackoffConfig> for BackoffConfig
impl From<FibonacciBackoffConfig> for BackoffConfig
Source§fn from(config: FibonacciBackoffConfig) -> BackoffConfig
fn from(config: FibonacciBackoffConfig) -> BackoffConfig
Converts to this type from the input type.
Source§impl PartialEq for BackoffConfig
impl PartialEq for BackoffConfig
impl Copy for BackoffConfig
impl StructuralPartialEq for BackoffConfig
Auto Trait Implementations§
impl Freeze for BackoffConfig
impl RefUnwindSafe for BackoffConfig
impl Send for BackoffConfig
impl Sync for BackoffConfig
impl Unpin for BackoffConfig
impl UnwindSafe for BackoffConfig
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