#[non_exhaustive]pub enum ArmorType {
Message,
PublicKey,
SecretKey,
Signature,
Cleartext,
}Expand description
Armor stream type. See rnp_enarmor() for the canonical string values.
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.
Message
"message" — the default.
PublicKey
"public key".
SecretKey
"secret key".
Signature
"signature".
Cleartext
"cleartext signed message".
Implementations§
Trait Implementations§
impl Copy for ArmorType
Auto Trait Implementations§
impl Freeze for ArmorType
impl RefUnwindSafe for ArmorType
impl Send for ArmorType
impl Sync for ArmorType
impl Unpin for ArmorType
impl UnsafeUnpin for ArmorType
impl UnwindSafe for ArmorType
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