pub struct SEIP1 { /* private fields */ }
Expand description
Holds an encrypted data packet.
An encrypted data packet is a container. See Section 5.13 of RFC 4880 for details.
A note on equality
An unprocessed (encrypted) SEIP
packet is never considered equal
to a processed (decrypted) one. Likewise, a processed (decrypted)
packet is never considered equal to a structured (parsed) one.
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
impl Eq for SEIP1
impl StructuralEq for SEIP1
impl StructuralPartialEq for SEIP1
Auto Trait Implementations
impl RefUnwindSafe for SEIP1
impl Send for SEIP1
impl Sync for SEIP1
impl Unpin for SEIP1
impl UnwindSafe for SEIP1
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