pub struct PerErrorConfig {
pub retryable: Option<RetryStrategyConfig>,
pub ambiguous: Option<RetryStrategyConfig>,
pub permanent: Option<RetryStrategyConfig>,
}Expand description
Per-error-type retry configuration.
Fields§
§retryable: Option<RetryStrategyConfig>Retry configuration for retryable errors (e.g., network issues, rate limiting).
ambiguous: Option<RetryStrategyConfig>Retry configuration for ambiguous errors (e.g., unknown if publish succeeded).
permanent: Option<RetryStrategyConfig>Retry configuration for permanent errors (e.g., authentication failure). Permanent errors are typically not retried, but this can be customized.
Trait Implementations§
Source§impl Clone for PerErrorConfig
impl Clone for PerErrorConfig
Source§fn clone(&self) -> PerErrorConfig
fn clone(&self) -> PerErrorConfig
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 PerErrorConfig
impl Debug for PerErrorConfig
Source§impl Default for PerErrorConfig
impl Default for PerErrorConfig
Source§fn default() -> PerErrorConfig
fn default() -> PerErrorConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PerErrorConfig
impl<'de> Deserialize<'de> for PerErrorConfig
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 PerErrorConfig
impl RefUnwindSafe for PerErrorConfig
impl Send for PerErrorConfig
impl Sync for PerErrorConfig
impl Unpin for PerErrorConfig
impl UnsafeUnpin for PerErrorConfig
impl UnwindSafe for PerErrorConfig
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