pub struct RetryConfig {
pub profile: Option<RetryProfileName>,
pub upstream: Option<RetryLayerConfig>,
pub provider: Option<RetryLayerConfig>,
pub allow_cross_station_before_first_output: Option<bool>,
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.
upstream: Option<RetryLayerConfig>§provider: Option<RetryLayerConfig>§allow_cross_station_before_first_output: Option<bool>Allow automatic failover to another station, but only before any output has been committed to the client. Session-pinned routes remain sticky regardless of this setting.
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 (const: unstable) · 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 UnsafeUnpin 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