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
The library failed to authenticate Aws account.
Fields of RusotoCreds
source: CredentialsError
backtrace: Backtrace
The library failed to get the region for the given profile.
Fields of RusotoRegionFromProfile
The library failed to identify the region obtained from the given profile.
The library failed to instantiate ‘HttpClient’.
The library failed to instantiate ‘tokio Runtime’.
The library failed to get public key from AWS KMS
Fields of KmsGetPublicKey
Empty public key was returned by AWS KMS
Public key could not be parsed as an SPKI document
Fields of PublicKeyParse
source: Error
The library failed to get the message signature from AWS KMS
Fields of KmsSignMessage
Empty signature was returned by AWS KMS
Provided signing algorithm is not valid
Supported signing algorithm list is missing for CMK in AWS KMS
Fields of BadCustomerMasterKeySpec
spec: String
Fields of BadCustomerMasterKeySpecInt
spec: String
source: ParseIntError
Trait Implementations
use the Display impl or to_string()
replaced by Error::source, which can support downcasting
The lower-level source of this error, if any. Read more
Auto Trait Implementations
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error
Blanket Implementations
For maximum effectiveness, this needs to be called as a method to benefit from Rust’s automatic dereferencing of method receivers. Read more
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self