Struct fluvio::RetryPolicy
source · pub struct RetryPolicy {
pub max_retries: usize,
pub initial_delay: Duration,
pub max_delay: Duration,
pub timeout: Duration,
pub strategy: RetryStrategy,
}Expand description
Defines parameters of retries in DeliverySemantic::AtLeastOnce delivery semantic.
Fields§
§max_retries: usizeMax amount of retries. If 0, no retries will be performed.
initial_delay: DurationInitial delay before the first retry.
max_delay: DurationThe upper limit for delay for RetryStrategy::ExponentialBackoff and
RetryStrategy::FibonacciBackoff retry strategies.
timeout: DurationMax duration for all retries.
strategy: RetryStrategyDefines the strategy of delays distribution.
Implementations§
Trait Implementations§
source§impl Clone for RetryPolicy
impl Clone for RetryPolicy
source§fn clone(&self) -> RetryPolicy
fn clone(&self) -> RetryPolicy
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 RetryPolicy
impl Debug for RetryPolicy
source§impl Default for RetryPolicy
impl Default for RetryPolicy
source§impl<'de> Deserialize<'de> for RetryPolicy
impl<'de> Deserialize<'de> for RetryPolicy
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 RetryPolicy
impl Hash for RetryPolicy
source§impl PartialEq for RetryPolicy
impl PartialEq for RetryPolicy
source§fn eq(&self, other: &RetryPolicy) -> bool
fn eq(&self, other: &RetryPolicy) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for RetryPolicy
impl Serialize for RetryPolicy
impl Copy for RetryPolicy
impl Eq for RetryPolicy
impl StructuralPartialEq for RetryPolicy
Auto Trait Implementations§
impl Freeze for RetryPolicy
impl RefUnwindSafe for RetryPolicy
impl Send for RetryPolicy
impl Sync for RetryPolicy
impl Unpin for RetryPolicy
impl UnwindSafe for RetryPolicy
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.