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
V1(SEIP1)
SEIP packet version 1.
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
sourceimpl Any<SEIP> for Packet
impl Any<SEIP> for Packet
sourcefn downcast(self) -> Result<SEIP, Packet>
fn downcast(self) -> Result<SEIP, Packet>
Attempts to downcast to T
, returning the packet if it fails. Read more
sourcefn downcast_ref(&self) -> Option<&SEIP>
fn downcast_ref(&self) -> Option<&SEIP>
Attempts to downcast to &T
, returning None
if it fails. Read more
sourcefn downcast_mut(&mut self) -> Option<&mut SEIP>
fn downcast_mut(&mut self) -> Option<&mut SEIP>
Attempts to downcast to &mut T
, returning None
if it fails. Read more
sourceimpl IntoIterator for SEIP
impl IntoIterator for SEIP
Implement IntoIterator
so that
cert::insert_packets(sig)
just works.
sourceimpl Marshal for SEIP
impl Marshal for SEIP
sourceimpl MarshalInto for SEIP
impl MarshalInto for SEIP
sourcefn serialized_len(&self) -> usize
fn serialized_len(&self) -> usize
Computes the maximal length of the serialized representation. Read more
sourcefn serialize_into(&self, buf: &mut [u8]) -> Result<usize>
fn serialize_into(&self, buf: &mut [u8]) -> Result<usize>
Serializes into the given buffer. Read more
sourceimpl<'a> Parse<'a, SEIP> for SEIP
impl<'a> Parse<'a, SEIP> for SEIP
impl Eq for SEIP
impl StructuralEq for SEIP
impl StructuralPartialEq for SEIP
Auto Trait Implementations
impl RefUnwindSafe for SEIP
impl Send for SEIP
impl Sync for SEIP
impl Unpin for SEIP
impl UnwindSafe for SEIP
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more