Enum aws_smithy_types::retry::RetryConfigErr
source · [−]#[non_exhaustive]
pub enum RetryConfigErr {
InvalidRetryMode {
source: RetryModeParseErr,
set_by: Cow<'static, str>,
},
MaxAttemptsMustNotBeZero {
set_by: Cow<'static, str>,
},
FailedToParseMaxAttempts {
source: ParseIntError,
set_by: Cow<'static, str>,
},
AdaptiveModeIsNotSupported {
set_by: Cow<'static, str>,
},
}
Expand description
Failure to parse retry config from profile file or environment variable.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InvalidRetryMode
Fields
source: RetryModeParseErr
Cause of the error.
The configured retry mode wasn’t recognized.
MaxAttemptsMustNotBeZero
Max attempts must be greater than zero.
FailedToParseMaxAttempts
Fields
source: ParseIntError
Cause of the error.
The max attempts value couldn’t be parsed to an integer.
AdaptiveModeIsNotSupported
The adaptive retry mode hasn’t been implemented yet.