#[non_exhaustive]pub enum KeyImportError {
InvalidSeedLength(usize),
EmptyAlias,
Pkcs8Generation(String),
Encryption(String),
KeychainStore(String),
}Expand description
Errors from key import operations.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InvalidSeedLength(usize)
The seed is not exactly 32 bytes.
EmptyAlias
The alias string is empty.
Pkcs8Generation(String)
PKCS#8 DER encoding failed.
Encryption(String)
Encryption of the private key failed.
KeychainStore(String)
Storing the encrypted key in the keychain failed.
Trait Implementations§
Source§impl Debug for KeyImportError
impl Debug for KeyImportError
Source§impl Display for KeyImportError
impl Display for KeyImportError
Source§impl Error for KeyImportError
impl Error for KeyImportError
1.30.0 · 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()
Auto Trait Implementations§
impl Freeze for KeyImportError
impl RefUnwindSafe for KeyImportError
impl Send for KeyImportError
impl Sync for KeyImportError
impl Unpin for KeyImportError
impl UnsafeUnpin for KeyImportError
impl UnwindSafe for KeyImportError
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