Enum cfxcore_accounts::Error
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(Error),
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(Error)
Derivation error
Custom(String)
Custom error
Trait Implementations§
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