pub enum KeyringError {
NotAKeyFile,
NotAnEpochStore,
TooManyEntries(usize),
UnsupportedVersion(u8),
Malformed,
UnreasonableParameters,
WrongPassphrase,
PassphraseTooShort(usize),
WrongPurpose {
expected: KeyPurpose,
found: KeyPurpose,
},
Crypto(String),
}Variants§
NotAKeyFile
NotAnEpochStore
TooManyEntries(usize)
UnsupportedVersion(u8)
Malformed
UnreasonableParameters
WrongPassphrase
PassphraseTooShort(usize)
WrongPurpose
Crypto(String)
Trait Implementations§
Source§impl Debug for KeyringError
impl Debug for KeyringError
Source§impl Display for KeyringError
impl Display for KeyringError
impl Eq for KeyringError
Source§impl Error for KeyringError
impl Error for KeyringError
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()
Source§impl From<CryptoError> for KeyringError
impl From<CryptoError> for KeyringError
Source§fn from(error: CryptoError) -> Self
fn from(error: CryptoError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for KeyringError
impl PartialEq for KeyringError
impl StructuralPartialEq for KeyringError
Auto Trait Implementations§
impl Forget for KeyringError
impl Freeze for KeyringError
impl Move for KeyringError
impl RefUnwindSafe for KeyringError
impl Send for KeyringError
impl Sync for KeyringError
impl Unpin for KeyringError
impl UnsafeUnpin for KeyringError
impl UnwindSafe for KeyringError
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