Struct pgp::packet::ModDetectionCode
source · pub struct ModDetectionCode { /* private fields */ }
Expand description
Modification Detection Code Packet https://tools.ietf.org/html/rfc4880.html#section-5.14
Implementations§
source§impl ModDetectionCode
impl ModDetectionCode
sourcepub fn from_slice(packet_version: Version, input: &[u8]) -> Result<Self>
pub fn from_slice(packet_version: Version, input: &[u8]) -> Result<Self>
Parses a ModDetectionCode
packet from the given slice.
Trait Implementations§
source§impl Clone for ModDetectionCode
impl Clone for ModDetectionCode
source§fn clone(&self) -> ModDetectionCode
fn clone(&self) -> ModDetectionCode
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ModDetectionCode
impl Debug for ModDetectionCode
source§impl From<ModDetectionCode> for Packet
impl From<ModDetectionCode> for Packet
source§fn from(other: ModDetectionCode) -> Packet
fn from(other: ModDetectionCode) -> Packet
Converts to this type from the input type.
source§impl PacketTrait for ModDetectionCode
impl PacketTrait for ModDetectionCode
source§impl PartialEq<ModDetectionCode> for ModDetectionCode
impl PartialEq<ModDetectionCode> for ModDetectionCode
source§fn eq(&self, other: &ModDetectionCode) -> bool
fn eq(&self, other: &ModDetectionCode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.