pub enum UnwrapError {
NotARecipient,
Malformed(String),
NotAKeyring(KeyringError),
Mismatch(Refusal),
}Expand description
Why the unwrap failed.
Variants§
NotARecipient
The user key is not a recipient of this key file: its holder is not (or no longer) a member.
Malformed(String)
The key file is not a readable age file.
NotAKeyring(KeyringError)
The payload decrypted, but it is not a key ring.
Mismatch(Refusal)
The ring’s stanzas do not match the members file (a stanza for a key nobody listed, a missing one, or a classical one in a quantum-safe repository): refused before anything is unwrapped.
Trait Implementations§
Source§impl Debug for UnwrapError
impl Debug for UnwrapError
Source§impl Display for UnwrapError
impl Display for UnwrapError
Source§impl Error for UnwrapError
impl Error for UnwrapError
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 UnwrapError
impl RefUnwindSafe for UnwrapError
impl Send for UnwrapError
impl Sync for UnwrapError
impl Unpin for UnwrapError
impl UnsafeUnpin for UnwrapError
impl UnwindSafe for UnwrapError
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