pub enum Error {
Show 16 variants Io(IoError), InvalidPassword, InvalidSecret, InvalidCryptoMeta, InvalidAccount, InvalidMessage, InvalidKeyFile(String), VaultsAreNotSupported, UnsupportedVault, InvalidVaultName, VaultNotFound, CreationFailed, EthCrypto(Error), EthCryptoPublicKey(Error), Derivation(DerivationError), Custom(String),
}
Expand description

Account-related errors.

Variants

Io(IoError)

IO error

InvalidPassword

Invalid Password

InvalidSecret

Account’s secret is invalid.

InvalidCryptoMeta

Invalid Vault Crypto meta.

InvalidAccount

Invalid Account.

InvalidMessage

Invalid Message.

InvalidKeyFile(String)

Invalid Key File

VaultsAreNotSupported

Vaults are not supported.

UnsupportedVault

Unsupported vault

InvalidVaultName

Invalid vault name

VaultNotFound

Vault not found

CreationFailed

Account creation failed.

EthCrypto(Error)

crypto::publickey::Error

EthCryptoPublicKey(Error)

EthCrypto error

Derivation(DerivationError)

Derivation error

Custom(String)

Custom error

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.