pub enum KeyringError {
NotAKeyring,
BadLine(usize),
BadEpochs,
Empty,
BadIdKey,
}Expand description
Why a key ring was refused.
Variants§
NotAKeyring
The payload does not start with HEADER — not a key ring at all.
BadLine(usize)
A line that is not epoch <n> <base64>.
BadEpochs
Epochs must be 1, 2, 3, … with no gap and no repeat.
Empty
A ring with no key.
BadIdKey
The id-key line is missing or malformed.
Trait Implementations§
Source§impl Clone for KeyringError
impl Clone for KeyringError
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 PartialEq for KeyringError
impl PartialEq for KeyringError
impl StructuralPartialEq for KeyringError
Auto Trait Implementations§
impl Freeze 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