pub enum KeystoreError {
Show 15 variants
WrongKdfFunction,
SerdeError(Error),
FromHexError(FromHexError),
IOError(Error),
WrongKDFParameters,
DeriveChildSkError(String),
DeriveMasterSkError(String),
GenericError(String),
ScryptError(String),
PBKDF2Error(String),
EncryptionError(String),
DecryptionError(String),
PathToNodes(String),
ReconstructMnemonicError(String),
MnemonicError(String),
}Variants§
WrongKdfFunction
SerdeError(Error)
FromHexError(FromHexError)
IOError(Error)
WrongKDFParameters
DeriveChildSkError(String)
DeriveMasterSkError(String)
GenericError(String)
ScryptError(String)
PBKDF2Error(String)
EncryptionError(String)
DecryptionError(String)
PathToNodes(String)
ReconstructMnemonicError(String)
MnemonicError(String)
Implementations§
Source§impl KeystoreError
impl KeystoreError
pub fn from<E: Display>(error: E) -> KeystoreError
Trait Implementations§
Source§impl Debug for KeystoreError
impl Debug for KeystoreError
Source§impl Display for KeystoreError
impl Display for KeystoreError
Source§impl Error for KeystoreError
impl Error for KeystoreError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<&str> for KeystoreError
impl From<&str> for KeystoreError
Source§fn from(err: &str) -> KeystoreError
fn from(err: &str) -> KeystoreError
Converts to this type from the input type.
Source§impl From<Error> for KeystoreError
impl From<Error> for KeystoreError
Source§fn from(source: SerdeError) -> Self
fn from(source: SerdeError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for KeystoreError
impl From<Error> for KeystoreError
Source§impl From<FromHexError> for KeystoreError
impl From<FromHexError> for KeystoreError
Source§fn from(source: FromHexError) -> Self
fn from(source: FromHexError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for KeystoreError
impl !RefUnwindSafe for KeystoreError
impl Send for KeystoreError
impl Sync for KeystoreError
impl Unpin for KeystoreError
impl !UnwindSafe for KeystoreError
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more