Enum web3_keystore::KeyStoreError
source · [−]pub enum KeyStoreError {
MacMismatch,
ScryptInvalidParams(InvalidParams),
ScryptInvalidOuputLen(InvalidOutputLen),
AesInvalidKeyNonceLength(InvalidLength),
}Expand description
An error thrown when encrypting or decrypting keystores.
Variants
MacMismatch
An error thrown while decrypting an encrypted JSON keystore if the calculated MAC does not match the MAC declared in the keystore.
ScryptInvalidParams(InvalidParams)
Invalid scrypt output length
ScryptInvalidOuputLen(InvalidOutputLen)
Invalid scrypt output length
AesInvalidKeyNonceLength(InvalidLength)
Invalid aes key nonce length
Trait Implementations
sourceimpl Debug for KeyStoreError
impl Debug for KeyStoreError
sourceimpl Display for KeyStoreError
impl Display for KeyStoreError
sourceimpl Error for KeyStoreError
impl Error for KeyStoreError
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
🔬 This is a nightly-only experimental API. (
backtrace)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl From<InvalidLength> for KeyStoreError
impl From<InvalidLength> for KeyStoreError
sourcefn from(e: InvalidLength) -> Self
fn from(e: InvalidLength) -> Self
Performs the conversion.
sourceimpl From<InvalidOutputLen> for KeyStoreError
impl From<InvalidOutputLen> for KeyStoreError
sourcefn from(e: InvalidOutputLen) -> Self
fn from(e: InvalidOutputLen) -> Self
Performs the conversion.
sourceimpl From<InvalidParams> for KeyStoreError
impl From<InvalidParams> for KeyStoreError
sourcefn from(e: InvalidParams) -> Self
fn from(e: InvalidParams) -> Self
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for KeyStoreError
impl Send for KeyStoreError
impl Sync for KeyStoreError
impl Unpin for KeyStoreError
impl UnwindSafe for KeyStoreError
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