Enum tough_kms::error::Error[][src]

#[non_exhaustive]
pub enum Error {
Show 17 variants RusotoCreds { source: CredentialsError, backtrace: Backtrace, }, RusotoRegionFromProfile { profile: String, source: CredentialsError, backtrace: Backtrace, }, RusotoRegion { region: String, source: ParseRegionError, backtrace: Backtrace, }, RusotoTls { source: TlsError, backtrace: Backtrace, }, RuntimeCreation { source: Error, backtrace: Backtrace, }, KmsGetPublicKey { profile: Option<String>, key_id: String, source: RusotoError<GetPublicKeyError>, backtrace: Backtrace, }, PublicKeyNone, PublicKeyParse { source: Error, }, KmsSignMessage { key_id: String, profile: Option<String>, source: RusotoError<SignError>, backtrace: Backtrace, }, SignatureNotFound, ValidSignAlgorithm, MissingSignAlgorithm, MissingCustomerMasterKeySpec, BadCustomerMasterKeySpec { spec: String, }, BadCustomerMasterKeySpecInt { spec: String, source: ParseIntError, }, SignatureTooLong { modulus_size_bytes: usize, signature_size_bytes: usize, }, UnsupportedModulusSize { modulus_size_bits: usize, spec: String, },
}
Expand description

The error type for this library.

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.
RusotoCreds

The library failed to authenticate Aws account.

Fields of RusotoCreds

source: CredentialsErrorbacktrace: Backtrace
RusotoRegionFromProfile

The library failed to get the region for the given profile.

Fields of RusotoRegionFromProfile

profile: Stringsource: CredentialsErrorbacktrace: Backtrace
RusotoRegion

The library failed to identify the region obtained from the given profile.

Fields of RusotoRegion

region: Stringsource: ParseRegionErrorbacktrace: Backtrace
RusotoTls

The library failed to instantiate ‘HttpClient’.

Fields of RusotoTls

source: TlsErrorbacktrace: Backtrace
RuntimeCreation

The library failed to instantiate ‘tokio Runtime’.

Fields of RuntimeCreation

source: Errorbacktrace: Backtrace
KmsGetPublicKey

The library failed to get public key from AWS KMS

Fields of KmsGetPublicKey

profile: Option<String>key_id: Stringsource: RusotoError<GetPublicKeyError>backtrace: Backtrace
PublicKeyNone

Empty public key was returned by AWS KMS

PublicKeyParse

Public key could not be parsed as an SPKI document

Fields of PublicKeyParse

source: Error
KmsSignMessage

The library failed to get the message signature from AWS KMS

Fields of KmsSignMessage

key_id: Stringprofile: Option<String>source: RusotoError<SignError>backtrace: Backtrace
SignatureNotFound

Empty signature was returned by AWS KMS

ValidSignAlgorithm

Provided signing algorithm is not valid

MissingSignAlgorithm

Supported signing algorithm list is missing for CMK in AWS KMS

MissingCustomerMasterKeySpec
BadCustomerMasterKeySpec

Fields of BadCustomerMasterKeySpec

spec: String
BadCustomerMasterKeySpecInt

Fields of BadCustomerMasterKeySpecInt

spec: Stringsource: ParseIntError
SignatureTooLong

Fields of SignatureTooLong

modulus_size_bytes: usizesignature_size_bytes: usize
UnsupportedModulusSize

Fields of UnsupportedModulusSize

modulus_size_bits: usizespec: String

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

The lower-level source of this error, if any. Read more

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

Returns a Backtrace that may be printed.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

For maximum effectiveness, this needs to be called as a method to benefit from Rust’s automatic dereferencing of method receivers. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Should always be Self

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.