[−][src]Enum sequoia_openpgp::packet::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]
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 Clone for Tag
[src]
impl Copy for Tag
[src]
impl Debug for Tag
[src]
impl Display for Tag
[src]
impl Eq for Tag
[src]
impl<'_> From<&'_ Packet> for Tag
[src]
impl<'_> From<&'_ Tag> for u8
[src]
impl From<Packet> for Tag
[src]
impl From<Tag> for u8
[src]
impl From<u8> for Tag
[src]
impl Hash for Tag
[src]
fn hash<H: Hasher>(&self, state: &mut H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for Tag
[src]
fn cmp(&self, other: &Self) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<Tag> for Tag
[src]
impl PartialOrd<Tag> 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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DynClone for T where
T: Clone,
[src]
T: Clone,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,