Enum fluvio::RetryStrategy
source · pub enum RetryStrategy {
FixedDelay,
ExponentialBackoff,
FibonacciBackoff,
}
Expand description
Strategy of delays distribution.
Variants§
FixedDelay
A retry strategy is driven by a fixed interval between retries.
ExponentialBackoff
A retry strategy is driven by exponential back-off.
For example, if you have five retries with initial delay of 10ms, the sequence will be:
[10ms, 100ms, 1s, 200s, 200s]
FibonacciBackoff
A retry strategy is driven by the Fibonacci series of intervals between retries.
For example, if you have five retries with initial delay of 10ms, the sequence will be
[10ms, 10ms, 20ms, 30ms, 50ms]
Trait Implementations§
source§impl Clone for RetryStrategy
impl Clone for RetryStrategy
source§fn clone(&self) -> RetryStrategy
fn clone(&self) -> RetryStrategy
Returns a copy 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 RetryStrategy
impl Debug for RetryStrategy
source§impl Default for RetryStrategy
impl Default for RetryStrategy
source§fn default() -> RetryStrategy
fn default() -> RetryStrategy
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for RetryStrategy
impl<'de> Deserialize<'de> for RetryStrategy
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 Hash for RetryStrategy
impl Hash for RetryStrategy
source§impl PartialEq for RetryStrategy
impl PartialEq for RetryStrategy
source§fn eq(&self, other: &RetryStrategy) -> bool
fn eq(&self, other: &RetryStrategy) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for RetryStrategy
impl Serialize for RetryStrategy
impl Copy for RetryStrategy
impl Eq for RetryStrategy
impl StructuralPartialEq for RetryStrategy
Auto Trait Implementations§
impl Freeze for RetryStrategy
impl RefUnwindSafe for RetryStrategy
impl Send for RetryStrategy
impl Sync for RetryStrategy
impl Unpin for RetryStrategy
impl UnwindSafe for RetryStrategy
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.