Enum ockam_vault::VaultError[][src]

pub enum VaultError {
Show 16 variants SecretFromAnotherVault, InvalidPublicKey, UnknownEcdhKeyType, InvalidKeyType, EntryNotFound, InvalidAesKeyLength, InvalidHkdfOutputType, InvalidPrivateKeyLen, AeadAesGcmEncrypt, AeadAesGcmDecrypt, HkdfExpandError, SecretNotFound, InvalidCurve25519SecretLength, InvalidCurve25519Secret, InvalidBlsSecretLength, InvalidBlsSecret,
}
Expand description

Represents the failures that can occur in an Ockam vault

Variants

SecretFromAnotherVault

Secret does not belong to this vault

InvalidPublicKey

Public key is invalid

UnknownEcdhKeyType

Unknown ECDH key type

InvalidKeyType

Invalid key type

EntryNotFound

Entry not found

InvalidAesKeyLength

Invalid AES key length

InvalidHkdfOutputType

Invalid HKDF outputtype

InvalidPrivateKeyLen

Invalid private key length

AeadAesGcmEncrypt

AES encryption failed

AeadAesGcmDecrypt

AES decryption failed

HkdfExpandError

HKDF key expansion failed

SecretNotFound

Secret not found

InvalidCurve25519SecretLength

Invalid Curve25519 secret length

InvalidCurve25519Secret

Invalid Curve25519 secret (scalar not clamped)

InvalidBlsSecretLength

Invalid BLS secret length

InvalidBlsSecret

Invalid BLS secret

Implementations

Integer code associated with the error domain.

Descriptive name for the error domain.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Try cloning a object and return an Err in case of failure.

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

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

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

recently added

Uses borrowed data to replace owned data, usually by cloning. 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.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more