pub enum Packet {
Show 17 variants
PublicKeySessionKey,
Signature(SignaturePacket),
SymmetricKeySessionKey,
OnePassSignature,
SecretKey(Key),
PublicKey(Key),
SecretSubkey(Key),
CompressedData(CompressedDataPacket),
SymmetricEncryptedData,
Marker,
LiteralData(LiteralPacket),
Trust,
UserId(String),
PublicSubkey(Key),
UserAttribute,
SymmetricEncryptedIntegrityProtectedData,
ModificationDetectionCode,
}Expand description
An OpenPGP packet.
Each currently-implemented variant contains a single structure representing the contents of that packet type.
Variants§
PublicKeySessionKey
Signature(SignaturePacket)
SymmetricKeySessionKey
OnePassSignature
SecretKey(Key)
PublicKey(Key)
SecretSubkey(Key)
CompressedData(CompressedDataPacket)
SymmetricEncryptedData
Marker
LiteralData(LiteralPacket)
Trust
UserId(String)
PublicSubkey(Key)
UserAttribute
SymmetricEncryptedIntegrityProtectedData
ModificationDetectionCode
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Packet
impl !RefUnwindSafe for Packet
impl Send for Packet
impl !Sync for Packet
impl Unpin for Packet
impl UnwindSafe for Packet
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more