[][src]Enum pgp::packet::Packet

pub enum Packet {
    CompressedData(CompressedData),
    PublicKey(PublicKey),
    PublicSubkey(PublicSubkey),
    SecretKey(SecretKey),
    SecretSubkey(SecretSubkey),
    LiteralData(LiteralData),
    Marker(Marker),
    ModDetectionCode(ModDetectionCode),
    OnePassSignature(OnePassSignature),
    PublicKeyEncryptedSessionKey(PublicKeyEncryptedSessionKey),
    Signature(Signature),
    SymEncryptedData(SymEncryptedData),
    SymEncryptedProtectedData(SymEncryptedProtectedData),
    SymKeyEncryptedSessionKey(SymKeyEncryptedSessionKey),
    Trust(Trust),
    UserAttribute(UserAttribute),
    UserId(UserId),
}

Variants

CompressedData(CompressedData)
PublicKey(PublicKey)
PublicSubkey(PublicSubkey)
SecretKey(SecretKey)
SecretSubkey(SecretSubkey)
LiteralData(LiteralData)
Marker(Marker)
ModDetectionCode(ModDetectionCode)
OnePassSignature(OnePassSignature)
PublicKeyEncryptedSessionKey(PublicKeyEncryptedSessionKey)
Signature(Signature)
SymEncryptedData(SymEncryptedData)
SymEncryptedProtectedData(SymEncryptedProtectedData)
SymKeyEncryptedSessionKey(SymKeyEncryptedSessionKey)
Trust(Trust)
UserAttribute(UserAttribute)
UserId(UserId)

Methods

impl Packet[src]

pub fn tag(&self) -> Tag[src]

Returns the tag for this packet type.

pub fn packet_version(&self) -> Version[src]

Trait Implementations

impl Serialize for Packet[src]

impl From<Esk> for Packet[src]

impl From<Edata> for Packet[src]

impl From<CompressedData> for Packet[src]

impl From<PublicKey> for Packet[src]

impl From<PublicSubkey> for Packet[src]

impl From<SecretKey> for Packet[src]

impl From<SecretSubkey> for Packet[src]

impl From<LiteralData> for Packet[src]

impl From<Marker> for Packet[src]

impl From<ModDetectionCode> for Packet[src]

impl From<OnePassSignature> for Packet[src]

impl From<PublicKeyEncryptedSessionKey> for Packet[src]

impl From<Signature> for Packet[src]

impl From<SymEncryptedData> for Packet[src]

impl From<SymEncryptedProtectedData> for Packet[src]

impl From<SymKeyEncryptedSessionKey> for Packet[src]

impl From<Trust> for Packet[src]

impl From<UserAttribute> for Packet[src]

impl From<UserId> for Packet[src]

impl Debug for Packet[src]

impl TryFrom<Packet> for Esk[src]

type Err = Error

impl TryFrom<Packet> for Edata[src]

type Err = Error

impl TryFrom<Packet> for CompressedData[src]

type Err = Error

impl TryFrom<Packet> for PublicKey[src]

type Err = Error

impl TryFrom<Packet> for PublicSubkey[src]

type Err = Error

impl TryFrom<Packet> for SecretKey[src]

type Err = Error

impl TryFrom<Packet> for SecretSubkey[src]

type Err = Error

impl TryFrom<Packet> for LiteralData[src]

type Err = Error

impl TryFrom<Packet> for Marker[src]

type Err = Error

impl TryFrom<Packet> for ModDetectionCode[src]

impl TryFrom<Packet> for OnePassSignature[src]

impl TryFrom<Packet> for PublicKeyEncryptedSessionKey[src]

impl TryFrom<Packet> for Signature[src]

type Err = Error

impl TryFrom<Packet> for SymEncryptedData[src]

impl TryFrom<Packet> for SymEncryptedProtectedData[src]

impl TryFrom<Packet> for SymKeyEncryptedSessionKey[src]

impl TryFrom<Packet> for Trust[src]

type Err = Error

impl TryFrom<Packet> for UserAttribute[src]

type Err = Error

impl TryFrom<Packet> for UserId[src]

type Err = Error

Auto Trait Implementations

impl Send for Packet

impl Sync for Packet

impl Unpin for Packet

impl UnwindSafe for Packet

impl RefUnwindSafe for Packet

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = !

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Err = <U as TryFrom<T>>::Err