Enum sequoia_openpgp::packet::prelude::Tag [−][src]
pub enum Tag { }
Expand description
The OpenPGP packet tags as defined in Section 4.3 of RFC 4880.
The values correspond to the serialized format.
Variants
Reserved Packet tag.
Public-Key Encrypted Session Key Packet.
Signature Packet.
Symmetric-Key Encrypted Session Key Packet.
One-Pass Signature Packet.
Secret-Key Packet.
Public-Key Packet.
Secret-Subkey Packet.
Compressed Data Packet.
Symmetrically Encrypted Data Packet.
Marker Packet (Obsolete Literal Packet).
Literal Data Packet.
Trust Packet.
User ID Packet.
Public-Subkey Packet.
User Attribute Packet.
Sym. Encrypted and Integrity Protected Data Packet.
Modification Detection Code Packet.
AEAD Encrypted Data Packet.
This feature is experimental.
Unknown(u8)
Unassigned packets (as of RFC4880).
Private(u8)
Experimental packets.
Implementations
Returns whether the Tag
can be at the start of a valid
message.
Certs can start with PublicKey
, TSKs with a SecretKey
.
Messages start with a OnePassSig
, Signature
(old style
non-one pass signatures), PKESK
, SKESK
, CompressedData
,
or Literal
.
Signatures can standalone either as a detached signature, a third-party certification, or a revocation certificate.
Trait Implementations
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for Tag
impl UnwindSafe for Tag
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self