Holds an encrypted data packet.
An encrypted data packet is a container. See Section 5.13 of RFC 4880 for details.
Gets the version.
SEIP struct to a
ⓘImportant traits for PacketIter<'a>
pub fn descendants(&self) -> PacketIter[src]
Returns an iterator over all of the packet's descendants, in depth-first order.
Retrieves the packet's body.
Packets can store a sequence of bytes as body, e.g. if the maximum recursion level is reached while parsing a sequence of packets, the container's body is stored as is.
Sets the packet's body.
Setting the body clears the old body, or any of the packet's descendants.
Writes a serialized version of the specified
Serializes the packet to a vector.
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from
source. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where1.3.0[src]
Feeds a slice of this type into the given [
Hasher]. Read more
type Error = Infallible
The type returned in the event of a conversion error.