pub fn decide_retry(
state: &RetryState,
error_log: &str,
config: &FailureConfig,
) -> RetryDecisionExpand description
Determine retry decision based on retry state and config.
§Arguments
state- Current retry state with attempt counterror_log- Error log to check for retryable patternsconfig- Failure configuration
§Returns
RetryDecision::Retry(delay)if should retryRetryDecision::PermanentFailure(reason)if should not retry