aws_config::retry

Trait ProvideErrorKind

Source
pub trait ProvideErrorKind {
    // Required methods
    fn retryable_error_kind(&self) -> Option<ErrorKind>;
    fn code(&self) -> Option<&str>;
}
Expand description

Trait that provides an ErrorKind and an error code.

Required Methods§

Source

fn retryable_error_kind(&self) -> Option<ErrorKind>

Returns the ErrorKind when the error is modeled as retryable

If the error kind cannot be determined (e.g. the error is unmodeled at the error kind depends on an HTTP status code, return None.

Source

fn code(&self) -> Option<&str>

Returns the code for this error if one exists

Implementations on Foreign Types§

Source§

impl ProvideErrorKind for GetRoleCredentialsError

Source§

impl ProvideErrorKind for ListAccountRolesError

Source§

impl ProvideErrorKind for ListAccountsError

Source§

impl ProvideErrorKind for LogoutError

Source§

impl ProvideErrorKind for CreateTokenError

Source§

impl ProvideErrorKind for CreateTokenWithIAMError

Source§

impl ProvideErrorKind for RegisterClientError

Source§

impl ProvideErrorKind for StartDeviceAuthorizationError

Source§

impl ProvideErrorKind for AssumeRoleError

Source§

impl ProvideErrorKind for AssumeRoleWithSAMLError

Source§

impl ProvideErrorKind for AssumeRoleWithWebIdentityError

Source§

impl ProvideErrorKind for DecodeAuthorizationMessageError

Source§

impl ProvideErrorKind for GetAccessKeyInfoError

Source§

impl ProvideErrorKind for GetCallerIdentityError

Source§

impl ProvideErrorKind for GetFederationTokenError

Source§

impl ProvideErrorKind for GetSessionTokenError

Implementors§