#[non_exhaustive]pub enum Kind {
Message,
PublicKey,
SecretKey,
Signature,
File,
}
Expand description
Specifies the type of data (see Section 6.2 of RFC 9580).
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
A generic OpenPGP message. (Since its structure hasn’t been
validated, in this crate’s terminology, this is just a
PacketPile
.)
PublicKey
A certificate.
SecretKey
A transferable secret key.
Signature
A detached signature.
File
A generic file. This is a GnuPG extension.
Trait Implementations§
impl Copy for Kind
impl StructuralPartialEq for Kind
Auto Trait Implementations§
impl Freeze for Kind
impl RefUnwindSafe for Kind
impl Send for Kind
impl Sync for Kind
impl Unpin for Kind
impl UnwindSafe for Kind
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