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§fn default() -> RetryConfig
fn default() -> RetryConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RetryConfig
impl<'de> Deserialize<'de> for RetryConfig
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<RetryConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<RetryConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for RetryConfig
impl Serialize for RetryConfig
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more