Struct sequoia_openpgp::packet::MDC
source · pub struct MDC { /* private fields */ }
Expand description
Holds an MDC packet.
A modification detection code packet. This packet appears after a SEIP packet. See Section 5.14 of RFC 4880 for details.
§A note on equality
Two MDC
packets are considered equal if their serialized form is
equal. This excludes the computed digest.
Implementations§
Trait Implementations§
source§impl Any<MDC> for Packet
impl Any<MDC> for Packet
source§impl IntoIterator for MDC
impl IntoIterator for MDC
Implement IntoIterator
so that
cert::insert_packets(sig)
just works.
source§impl MarshalInto for MDC
impl MarshalInto for MDC
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, MDC> for MDC
impl<'a> Parse<'a, MDC> for MDC
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.
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>
Reads from the given reader.
impl Eq for MDC
Auto Trait Implementations§
impl Freeze for MDC
impl RefUnwindSafe for MDC
impl Send for MDC
impl Sync for MDC
impl Unpin for MDC
impl UnwindSafe for MDC
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
)