pub enum SEIP {
    V1(SEIP1),
}
Expand description

Holds a SEIP packet.

A SEIP packet holds encrypted data. The data contains additional OpenPGP packets. See Section 5.13 of RFC 4880 for details.

A SEIP packet is not normally instantiated directly. In most cases, you’ll create one as a side-effect of encrypting a message using the streaming serializer, or parsing an encrypted message using the PacketParser.

Variants§

§

V1(SEIP1)

SEIP packet version 1.

Implementations§

Gets the version.

Methods from Deref<Target = Container>§

Returns a reference to this Packet’s children.

Returns None if the body is not structured.

Returns a mutable reference to this Packet’s children.

Returns None if the body is not structured.

Returns an iterator over the packet’s descendants. The descendants are visited in depth-first order.

Returns None if the body is not structured.

Returns an iterator over the packet’s immediate children.

Returns None if the body is not structured.

Gets the packet’s body.

Sets the packet’s body.

Trait Implementations§

Attempts to downcast to T, returning the packet if it fails. Read more
Attempts to downcast to &T, returning None if it fails. Read more
Attempts to downcast to &mut T, returning None if it fails. Read more
Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
The resulting type after dereferencing.
Dereferences the value.
Mutably dereferences the value.
Converts to this type from the input type.
Converts to this type from the input type.
Feeds this value into the given Hasher. Read more
Feeds a slice of this type into the given Hasher. Read more

Implement IntoIterator so that cert::insert_packets(sig) just works.

The type of the elements being iterated over.
Which kind of iterator are we turning this into?
Creates an iterator from a value. Read more

Writes a serialized version of the specified SEIP packet to o.

Errors

Returns Error::InvalidOperation if this packet has children. To construct an encrypted message, use serialize::stream::Encryptor.

Exports a serialized version of the object to o. Read more
Computes the maximal length of the serialized representation. Read more
Serializes into the given buffer. Read more
Serializes the packet to a vector.
Exports into the given buffer. Read more
Exports to a vector. Read more
Reads from the given reader.
Reads from the given file. Read more
Reads from the given slice. Read more
This method tests for self and other values to be equal, and is used by ==.
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.