aws_sdk_kms::error

Trait ProvideErrorMetadata

Source
pub trait ProvideErrorMetadata {
    // Required method
    fn meta(&self) -> &ErrorMetadata;

    // Provided methods
    fn code(&self) -> Option<&str> { ... }
    fn message(&self) -> Option<&str> { ... }
}
Expand description

Trait to retrieve error metadata from a result

Required Methods§

Source

fn meta(&self) -> &ErrorMetadata

Returns error metadata, which includes the error code, message, request ID, and potentially additional information.

Provided Methods§

Source

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

Returns the error code if it’s available.

Source

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

Returns the error message, if there is one.

Implementations on Foreign Types§

Source§

impl<E, R> ProvideErrorMetadata for SdkError<E, R>

Source§

impl<O, E> ProvideErrorMetadata for WaiterError<O, E>

Implementors§

Source§

impl ProvideErrorMetadata for Error

Source§

impl ProvideErrorMetadata for CancelKeyDeletionError

Source§

impl ProvideErrorMetadata for ConnectCustomKeyStoreError

Source§

impl ProvideErrorMetadata for CreateAliasError

Source§

impl ProvideErrorMetadata for CreateCustomKeyStoreError

Source§

impl ProvideErrorMetadata for CreateGrantError

Source§

impl ProvideErrorMetadata for CreateKeyError

Source§

impl ProvideErrorMetadata for DecryptError

Source§

impl ProvideErrorMetadata for DeleteAliasError

Source§

impl ProvideErrorMetadata for DeleteCustomKeyStoreError

Source§

impl ProvideErrorMetadata for DeleteImportedKeyMaterialError

Source§

impl ProvideErrorMetadata for DeriveSharedSecretError

Source§

impl ProvideErrorMetadata for DescribeCustomKeyStoresError

Source§

impl ProvideErrorMetadata for DescribeKeyError

Source§

impl ProvideErrorMetadata for DisableKeyError

Source§

impl ProvideErrorMetadata for DisableKeyRotationError

Source§

impl ProvideErrorMetadata for DisconnectCustomKeyStoreError

Source§

impl ProvideErrorMetadata for EnableKeyError

Source§

impl ProvideErrorMetadata for EnableKeyRotationError

Source§

impl ProvideErrorMetadata for EncryptError

Source§

impl ProvideErrorMetadata for GenerateDataKeyError

Source§

impl ProvideErrorMetadata for GenerateDataKeyPairError

Source§

impl ProvideErrorMetadata for GenerateDataKeyPairWithoutPlaintextError

Source§

impl ProvideErrorMetadata for GenerateDataKeyWithoutPlaintextError

Source§

impl ProvideErrorMetadata for GenerateMacError

Source§

impl ProvideErrorMetadata for GenerateRandomError

Source§

impl ProvideErrorMetadata for GetKeyPolicyError

Source§

impl ProvideErrorMetadata for GetKeyRotationStatusError

Source§

impl ProvideErrorMetadata for GetParametersForImportError

Source§

impl ProvideErrorMetadata for GetPublicKeyError

Source§

impl ProvideErrorMetadata for ImportKeyMaterialError

Source§

impl ProvideErrorMetadata for ListAliasesError

Source§

impl ProvideErrorMetadata for ListGrantsError

Source§

impl ProvideErrorMetadata for ListKeyPoliciesError

Source§

impl ProvideErrorMetadata for ListKeyRotationsError

Source§

impl ProvideErrorMetadata for ListKeysError

Source§

impl ProvideErrorMetadata for ListResourceTagsError

Source§

impl ProvideErrorMetadata for ListRetirableGrantsError

Source§

impl ProvideErrorMetadata for PutKeyPolicyError

Source§

impl ProvideErrorMetadata for ReEncryptError

Source§

impl ProvideErrorMetadata for ReplicateKeyError

Source§

impl ProvideErrorMetadata for RetireGrantError

Source§

impl ProvideErrorMetadata for RevokeGrantError

Source§

impl ProvideErrorMetadata for RotateKeyOnDemandError

Source§

impl ProvideErrorMetadata for ScheduleKeyDeletionError

Source§

impl ProvideErrorMetadata for SignError

Source§

impl ProvideErrorMetadata for TagResourceError

Source§

impl ProvideErrorMetadata for UntagResourceError

Source§

impl ProvideErrorMetadata for UpdateAliasError

Source§

impl ProvideErrorMetadata for UpdateCustomKeyStoreError

Source§

impl ProvideErrorMetadata for UpdateKeyDescriptionError

Source§

impl ProvideErrorMetadata for UpdatePrimaryRegionError

Source§

impl ProvideErrorMetadata for VerifyError

Source§

impl ProvideErrorMetadata for VerifyMacError

Source§

impl ProvideErrorMetadata for AlreadyExistsException

Source§

impl ProvideErrorMetadata for CloudHsmClusterInUseException

Source§

impl ProvideErrorMetadata for CloudHsmClusterInvalidConfigurationException

Source§

impl ProvideErrorMetadata for CloudHsmClusterNotActiveException

Source§

impl ProvideErrorMetadata for CloudHsmClusterNotFoundException

Source§

impl ProvideErrorMetadata for CloudHsmClusterNotRelatedException

Source§

impl ProvideErrorMetadata for ConflictException

Source§

impl ProvideErrorMetadata for CustomKeyStoreHasCmKsException

Source§

impl ProvideErrorMetadata for CustomKeyStoreInvalidStateException

Source§

impl ProvideErrorMetadata for CustomKeyStoreNameInUseException

Source§

impl ProvideErrorMetadata for CustomKeyStoreNotFoundException

Source§

impl ProvideErrorMetadata for DependencyTimeoutException

Source§

impl ProvideErrorMetadata for DisabledException

Source§

impl ProvideErrorMetadata for DryRunOperationException

Source§

impl ProvideErrorMetadata for ExpiredImportTokenException

Source§

impl ProvideErrorMetadata for IncorrectKeyException

Source§

impl ProvideErrorMetadata for IncorrectKeyMaterialException

Source§

impl ProvideErrorMetadata for IncorrectTrustAnchorException

Source§

impl ProvideErrorMetadata for InvalidAliasNameException

Source§

impl ProvideErrorMetadata for InvalidArnException

Source§

impl ProvideErrorMetadata for InvalidCiphertextException

Source§

impl ProvideErrorMetadata for InvalidGrantIdException

Source§

impl ProvideErrorMetadata for InvalidGrantTokenException

Source§

impl ProvideErrorMetadata for InvalidImportTokenException

Source§

impl ProvideErrorMetadata for InvalidKeyUsageException

Source§

impl ProvideErrorMetadata for InvalidMarkerException

Source§

impl ProvideErrorMetadata for KeyUnavailableException

Source§

impl ProvideErrorMetadata for KmsInternalException

Source§

impl ProvideErrorMetadata for KmsInvalidMacException

Source§

impl ProvideErrorMetadata for KmsInvalidSignatureException

Source§

impl ProvideErrorMetadata for KmsInvalidStateException

Source§

impl ProvideErrorMetadata for LimitExceededException

Source§

impl ProvideErrorMetadata for MalformedPolicyDocumentException

Source§

impl ProvideErrorMetadata for NotFoundException

Source§

impl ProvideErrorMetadata for TagException

Source§

impl ProvideErrorMetadata for UnsupportedOperationException

Source§

impl ProvideErrorMetadata for XksKeyAlreadyInUseException

Source§

impl ProvideErrorMetadata for XksKeyInvalidConfigurationException

Source§

impl ProvideErrorMetadata for XksKeyNotFoundException

Source§

impl ProvideErrorMetadata for XksProxyIncorrectAuthenticationCredentialException

Source§

impl ProvideErrorMetadata for XksProxyInvalidConfigurationException

Source§

impl ProvideErrorMetadata for XksProxyInvalidResponseException

Source§

impl ProvideErrorMetadata for XksProxyUriEndpointInUseException

Source§

impl ProvideErrorMetadata for XksProxyUriInUseException

Source§

impl ProvideErrorMetadata for XksProxyUriUnreachableException

Source§

impl ProvideErrorMetadata for XksProxyVpcEndpointServiceInUseException

Source§

impl ProvideErrorMetadata for XksProxyVpcEndpointServiceInvalidConfigurationException

Source§

impl ProvideErrorMetadata for XksProxyVpcEndpointServiceNotFoundException

Source§

impl ProvideErrorMetadata for ErrorMetadata