Enum sequoia_openpgp::packet::SEIP
source · 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§
Implementations§
Methods from Deref<Target = Container>§
sourcepub fn children_ref(&self) -> Option<&[Packet]>
pub fn children_ref(&self) -> Option<&[Packet]>
Returns a reference to this Packet’s children.
Returns None
if the body is not structured.
sourcepub fn children_mut(&mut self) -> Option<&mut Vec<Packet>>
pub fn children_mut(&mut self) -> Option<&mut Vec<Packet>>
Returns a mutable reference to this Packet’s children.
Returns None
if the body is not structured.
sourcepub fn descendants(&self) -> Option<Iter<'_>>
pub fn descendants(&self) -> Option<Iter<'_>>
Returns an iterator over the packet’s descendants. The descendants are visited in depth-first order.
Returns None
if the body is not structured.
Trait Implementations§
source§impl Any<SEIP> for Packet
impl Any<SEIP> for Packet
source§impl IntoIterator for SEIP
impl IntoIterator for SEIP
Implement IntoIterator
so that
cert::insert_packets(sig)
just works.
source§impl Marshal for SEIP
impl Marshal for SEIP
source§impl MarshalInto for SEIP
impl MarshalInto for SEIP
source§fn serialized_len(&self) -> usize
fn serialized_len(&self) -> usize
source§fn serialize_into(&self, buf: &mut [u8]) -> Result<usize>
fn serialize_into(&self, buf: &mut [u8]) -> Result<usize>
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,
source§fn from_reader<R: 'a + Read + Send + Sync>(reader: R) -> Result<Self>
fn from_reader<R: 'a + Read + Send + Sync>(reader: R) -> Result<Self>
source§impl PartialEq for SEIP
impl PartialEq for SEIP
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)