Trait aws_config::retry::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

§

impl ProvideErrorKind for AssumeRoleError

§

impl ProvideErrorKind for AssumeRoleWithSAMLError

§

impl ProvideErrorKind for AssumeRoleWithWebIdentityError

§

impl ProvideErrorKind for DecodeAuthorizationMessageError

§

impl ProvideErrorKind for GetAccessKeyInfoError

§

impl ProvideErrorKind for GetCallerIdentityError

§

impl ProvideErrorKind for GetFederationTokenError

§

impl ProvideErrorKind for GetSessionTokenError

Implementors§