pub struct RetryConfig {Show 17 fields
pub profile: Option<RetryProfileName>,
pub max_attempts: Option<u32>,
pub backoff_ms: Option<u64>,
pub backoff_max_ms: Option<u64>,
pub jitter_ms: Option<u64>,
pub on_status: Option<String>,
pub on_class: Option<Vec<String>>,
pub strategy: Option<RetryStrategy>,
pub upstream: Option<RetryLayerConfig>,
pub provider: Option<RetryLayerConfig>,
pub never_on_status: Option<String>,
pub never_on_class: Option<Vec<String>>,
pub cloudflare_challenge_cooldown_secs: Option<u64>,
pub cloudflare_timeout_cooldown_secs: Option<u64>,
pub transport_cooldown_secs: Option<u64>,
pub cooldown_backoff_factor: Option<u64>,
pub cooldown_backoff_max_secs: Option<u64>,
}Fields§
§profile: Option<RetryProfileName>Curated retry policy preset. When set, codex-helper starts from the profile defaults, then applies any explicitly configured fields below as overrides.
max_attempts: Option<u32>§backoff_ms: Option<u64>§backoff_max_ms: Option<u64>§jitter_ms: Option<u64>§on_status: Option<String>§on_class: Option<Vec<String>>§strategy: Option<RetryStrategy>§upstream: Option<RetryLayerConfig>§provider: Option<RetryLayerConfig>§never_on_status: Option<String>§never_on_class: Option<Vec<String>>§cloudflare_challenge_cooldown_secs: Option<u64>§cloudflare_timeout_cooldown_secs: Option<u64>§transport_cooldown_secs: Option<u64>§cooldown_backoff_factor: Option<u64>Optional exponential backoff for cooldown penalties. When factor > 1, repeated penalties will increase cooldown up to max_secs.
cooldown_backoff_max_secs: Option<u64>Implementations§
Source§impl RetryConfig
impl RetryConfig
pub fn resolve(&self) -> ResolvedRetryConfig
Trait Implementations§
Source§impl Clone for RetryConfig
impl Clone for RetryConfig
Source§fn clone(&self) -> RetryConfig
fn clone(&self) -> RetryConfig
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 RetryConfig
impl Debug for RetryConfig
Source§impl Default for RetryConfig
impl Default for RetryConfig
Source§impl<'de> Deserialize<'de> for RetryConfig
impl<'de> Deserialize<'de> for RetryConfig
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
Auto Trait Implementations§
impl Freeze for RetryConfig
impl RefUnwindSafe for RetryConfig
impl Send for RetryConfig
impl Sync for RetryConfig
impl Unpin for RetryConfig
impl UnwindSafe for RetryConfig
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