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 for ModDetectionCode
impl PartialEq 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 ==
.source§impl Serialize for ModDetectionCode
impl Serialize for ModDetectionCode
source§impl TryFrom<Packet> for ModDetectionCode
impl TryFrom<Packet> for ModDetectionCode
impl Eq for ModDetectionCode
impl StructuralPartialEq for ModDetectionCode
Auto Trait Implementations§
impl RefUnwindSafe for ModDetectionCode
impl Send for ModDetectionCode
impl Sync for ModDetectionCode
impl Unpin for ModDetectionCode
impl UnwindSafe for ModDetectionCode
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