pub struct ModDetectionCode { /* private fields */ }
Expand description
Modification Detection Code Packet https://www.rfc-editor.org/rfc/rfc9580.html#version-one-seipd
Also see https://www.rfc-editor.org/rfc/rfc9580.html#name-terminology-changes:
“Modification Detection Code” or “MDC” was originally described as a distinct packet (Packet Type ID 19), and its corresponding flag in the Features signature subpacket (Section 5.2.3.32) was known as “Modification Detection”. It is now described as an intrinsic part of v1 SEIPD (Section 5.13.1), and the same corresponding flag is known as “Version 1 Symmetrically Encrypted and Integrity Protected Data packet”.
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 duplicate 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§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 Freeze for ModDetectionCode
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