[−][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]
pub fn hash<H: Hasher>(&self, state: &mut H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for Tag
[src]
pub fn cmp(&self, other: &Self) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<Tag> for Tag
[src]
pub fn eq(&self, other: &Tag) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialOrd<Tag> for Tag
[src]
Auto Trait Implementations
impl RefUnwindSafe for Tag
[src]
impl Send for Tag
[src]
impl Sync for Tag
[src]
impl Unpin for Tag
[src]
impl UnwindSafe for Tag
[src]
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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DynClone for T where
T: Clone,
[src]
T: Clone,
pub fn __clone_box(&self, Private) -> *mut ()
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,