Struct sequoia_openpgp::packet::seip::SEIP1
source · 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§
source§impl PartialEq for SEIP1
impl PartialEq for SEIP1
impl Eq for SEIP1
impl StructuralPartialEq for SEIP1
Auto Trait Implementations§
impl Freeze for SEIP1
impl RefUnwindSafe for SEIP1
impl Send for SEIP1
impl Sync for SEIP1
impl Unpin for SEIP1
impl UnwindSafe for SEIP1
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
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)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)