#[non_exhaustive]pub enum SEIP {
V1(SEIP1),
V2(SEIP2),
}
Expand description
Holds a SEIP packet.
A SEIP packet holds encrypted data. The data contains additional OpenPGP packets. See Section 5.13 of RFC 9580 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 (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Implementations§
Trait Implementations§
Source§impl Any<SEIP> for Packet
impl Any<SEIP> for Packet
Source§impl IntoIterator for SEIP
Implement IntoIterator
so that
cert::insert_packets(sig)
just works.
impl IntoIterator for SEIP
Implement IntoIterator
so that
cert::insert_packets(sig)
just works.
Source§impl MarshalInto for SEIP
impl MarshalInto for SEIP
Source§fn serialized_len(&self) -> usize
fn serialized_len(&self) -> usize
Computes the maximal length of the serialized representation. Read more
Source§fn serialize_into(&self, buf: &mut [u8]) -> Result<usize>
fn serialize_into(&self, buf: &mut [u8]) -> Result<usize>
Serializes into the given buffer. Read more
Source§impl<'a> Parse<'a, SEIP> for SEIP
impl<'a> Parse<'a, SEIP> for SEIP
Source§fn from_buffered_reader<R>(reader: R) -> Result<Self>where
R: BufferedReader<Cookie> + 'a,
fn from_buffered_reader<R>(reader: R) -> Result<Self>where
R: BufferedReader<Cookie> + 'a,
Reads from the given buffered reader. Read more
impl Eq for SEIP
impl StructuralPartialEq for SEIP
Auto Trait Implementations§
impl Freeze for SEIP
impl RefUnwindSafe for SEIP
impl Send for SEIP
impl Sync for SEIP
impl Unpin for SEIP
impl UnwindSafe for SEIP
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