Holds an encrypted data packet.
An encrypted data packet is a container. See Section 5.13 of RFC 4880 for details.
Creates a new SEIP packet.
Gets the version.
ⓘ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
Error::InvalidOperation if this packet has children.
To construct an encrypted message, use
impl SerializeInto for SEIP[src]
fn serialized_len(&self) -> usize[src]
Serializes the packet to a vector.
fn from_reader<R: 'a + Read>(reader: R) -> Result<Self>[src]
Reads from the given file. Read more
Reads from the given slice. Read more
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.