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§