pub enum KeyRefusal {
SecurityKeyOnly(String),
Unsupported(String),
Malformed,
MalformedPq,
}Expand description
Why a public key cannot be a recipient.
Variants§
SecurityKeyOnly(String)
A FIDO security-key SSH key (sk-…): it can only sign.
Unsupported(String)
A key type age cannot encrypt to (e.g. ECDSA).
Malformed
Not a public key line at all.
MalformedPq
Starts like an age1pq1… key but is not one.
Trait Implementations§
Source§impl Clone for KeyRefusal
impl Clone for KeyRefusal
Source§impl Debug for KeyRefusal
impl Debug for KeyRefusal
Source§impl Display for KeyRefusal
impl Display for KeyRefusal
impl Eq for KeyRefusal
Source§impl Error for KeyRefusal
impl Error for KeyRefusal
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 KeyRefusal
impl PartialEq for KeyRefusal
impl StructuralPartialEq for KeyRefusal
Auto Trait Implementations§
impl Freeze for KeyRefusal
impl RefUnwindSafe for KeyRefusal
impl Send for KeyRefusal
impl Sync for KeyRefusal
impl Unpin for KeyRefusal
impl UnsafeUnpin for KeyRefusal
impl UnwindSafe for KeyRefusal
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