pub enum Error {
Show 17 variants
Io(Error),
InvalidPassword,
InvalidSecret,
InvalidCryptoMeta,
InvalidAccount,
InvalidMessage,
InvalidKeyFile(String),
VaultsAreNotSupported,
UnsupportedVault,
InvalidVaultName,
VaultNotFound,
CreationFailed,
EthKey(Error),
EthKeyCrypto(Error),
EthCrypto(Error),
Derivation(DerivationError),
Custom(String),
}
Expand description
Account-related errors.
Variants§
Io(Error)
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.
EthKey(Error)
EthKey
error
EthKeyCrypto(Error)
cfxkey::crypto::Error
EthCrypto(Error)
EthCrypto
error
Derivation(DerivationError)
Derivation error
Custom(String)
Custom error
Trait Implementations§
source§impl From<Error> for Error
impl From<Error> for Error
source§fn from(err: DerivationError) -> Self
fn from(err: DerivationError) -> Self
Converts to this type from the input type.
source§impl From<Error> for Error
impl From<Error> for Error
source§fn from(err: EthKeyError) -> Self
fn from(err: EthKeyError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more