pub struct FailureConfig {
pub max_retries: usize,
pub retry_delay_ms: u64,
pub backoff_multiplier: f64,
pub retryable_patterns: Vec<String>,
pub on_permanent_failure: OnPermanentFailure,
}Expand description
Configuration for failure handling in watch command
Fields§
§max_retries: usizeMaximum number of retry attempts for transient errors
retry_delay_ms: u64Delay in milliseconds before first retry
backoff_multiplier: f64Multiplier for exponential backoff (must be >= 1.0)
retryable_patterns: Vec<String>Regex patterns for errors that should be retried
on_permanent_failure: OnPermanentFailureAction to take on permanent failure
Implementations§
Trait Implementations§
Source§impl Clone for FailureConfig
impl Clone for FailureConfig
Source§fn clone(&self) -> FailureConfig
fn clone(&self) -> FailureConfig
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 FailureConfig
impl Debug for FailureConfig
Source§impl Default for FailureConfig
impl Default for FailureConfig
Source§impl<'de> Deserialize<'de> for FailureConfig
impl<'de> Deserialize<'de> for FailureConfig
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 FailureConfig
impl RefUnwindSafe for FailureConfig
impl Send for FailureConfig
impl Sync for FailureConfig
impl Unpin for FailureConfig
impl UnwindSafe for FailureConfig
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