pub struct Packet {
pub version: Version,
pub tag: Tag,
pub body: Vec<u8>,
}
Expand description
Represents a Packet. A packet is the record structure used to encode a chunk of data in OpenPGP. Ref: https://tools.ietf.org/html/rfc4880.html#section-4
Fields§
§version: Version
Indicator if this is an old or new versioned packet
tag: Tag
Denotes the type of data this packet holds
body: Vec<u8>
The raw bytes of the packet
Trait Implementations§
source§impl PartialEq for Packet
impl PartialEq for Packet
impl Eq for Packet
impl StructuralPartialEq for Packet
Auto Trait Implementations§
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