#[non_exhaustive]pub struct BackendRetry {
pub exponent_base: Option<u32>,
pub factor: Option<u32>,
pub number_of_retries: Option<u32>,
pub jitter_percent: Option<u32>,
}Expand description
Retry policy shared across backend connections.
Matches ferriskey’s ConnectionRetryStrategy shape (see
ferriskey/src/client/types.rs:151) so Stage 1c’s Valkey wiring is a
direct pass-through — we don’t reimplement what ferriskey already
provides. The Postgres backend (future) interprets the same fields
under its own retry semantics, or maps None to its own defaults.
Each field is Option<u32>: None ⇒ backend default (for Valkey,
this means ConnectionRetryStrategy::default()); Some(v) ⇒ pass
v straight through.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.exponent_base: Option<u32>Exponent base for the backoff curve. None ⇒ backend default.
factor: Option<u32>Multiplicative factor applied to each backoff step. None ⇒
backend default.
number_of_retries: Option<u32>Maximum number of retry attempts on transient transport errors.
None ⇒ backend default.
jitter_percent: Option<u32>Jitter as a percentage of the computed backoff. None ⇒ backend
default.
Trait Implementations§
Source§impl Clone for BackendRetry
impl Clone for BackendRetry
Source§fn clone(&self) -> BackendRetry
fn clone(&self) -> BackendRetry
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more