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
sourceimpl 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
sourceimpl Clone for ModDetectionCode
impl Clone for ModDetectionCode
sourcefn clone(&self) -> ModDetectionCode
fn clone(&self) -> ModDetectionCode
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ModDetectionCode
impl Debug for ModDetectionCode
sourceimpl From<ModDetectionCode> for Packet
impl From<ModDetectionCode> for Packet
sourcefn from(other: ModDetectionCode) -> Packet
fn from(other: ModDetectionCode) -> Packet
Converts to this type from the input type.
sourceimpl PacketTrait for ModDetectionCode
impl PacketTrait for ModDetectionCode
sourceimpl PartialEq<ModDetectionCode> for ModDetectionCode
impl PartialEq<ModDetectionCode> for ModDetectionCode
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &ModDetectionCode) -> bool
fn ne(&self, other: &ModDetectionCode) -> bool
This method tests for !=
.
sourceimpl Serialize for ModDetectionCode
impl Serialize for ModDetectionCode
sourceimpl TryFrom<Packet> for ModDetectionCode
impl TryFrom<Packet> for ModDetectionCode
impl Eq for ModDetectionCode
impl StructuralEq 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
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