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
sourceimpl MDC
impl MDC
Trait Implementations
sourceimpl Any<MDC> for Packet
impl Any<MDC> for Packet
sourcefn downcast(self) -> Result<MDC, Packet>
fn downcast(self) -> Result<MDC, Packet>
Attempts to downcast to T
, returning the packet if it fails. Read more
sourcefn downcast_ref(&self) -> Option<&MDC>
fn downcast_ref(&self) -> Option<&MDC>
Attempts to downcast to &T
, returning None
if it fails. Read more
sourcefn downcast_mut(&mut self) -> Option<&mut MDC>
fn downcast_mut(&mut self) -> Option<&mut MDC>
Attempts to downcast to &mut T
, returning None
if it fails. Read more
sourceimpl IntoIterator for MDC
impl IntoIterator for MDC
Implement IntoIterator
so that
cert::insert_packets(sig)
just works.
sourceimpl MarshalInto for MDC
impl MarshalInto for MDC
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, MDC> for MDC
impl<'a> Parse<'a, MDC> for MDC
impl Eq for MDC
Auto Trait Implementations
impl RefUnwindSafe for MDC
impl Send for MDC
impl Sync for MDC
impl Unpin for MDC
impl UnwindSafe for MDC
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