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
sourceimpl From<ScryptError> for Error
impl From<ScryptError> for Error
sourcefn from(err: ScryptError) -> Self
fn from(err: ScryptError) -> Self
Performs the conversion.
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more