Enum sequoia_openpgp::packet::Tag [−][src]
pub enum Tag { }
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
impl Tag
[src]
impl Tag
[src]pub fn valid_start_of_message(&self) -> bool
[src]
pub fn valid_start_of_message(&self) -> bool
[src]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
impl Ord for Tag
[src]
impl Ord for Tag
[src]impl PartialOrd<Tag> for Tag
[src]
impl PartialOrd<Tag> for Tag
[src]fn partial_cmp(&self, other: &Self) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
[src]This method returns an ordering between self
and other
values if one exists. Read more
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Copy for Tag
[src]
impl Eq for Tag
[src]
Auto Trait Implementations
impl RefUnwindSafe for Tag
impl Send for Tag
impl Sync for Tag
impl Unpin for Tag
impl UnwindSafe for Tag
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more