pub struct ContentChecksum(/* private fields */);Expand description
An optional checksum value provided at the end of the frame.
Content_Checksum, as per the RFC:
An optional 32-bit checksum, only present if
Content_Checksum_Flagis set. The content checksum is the result of theXXH64()hash function XXHASH digesting the original (decoded) data as input, and a seed of zero. The low 4 bytes of the checksum are stored in little-endian format.
Implementations§
Trait Implementations§
Source§impl Clone for ContentChecksum
impl Clone for ContentChecksum
Source§fn clone(&self) -> ContentChecksum
fn clone(&self) -> ContentChecksum
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 ContentChecksum
impl Debug for ContentChecksum
Auto Trait Implementations§
impl Freeze for ContentChecksum
impl RefUnwindSafe for ContentChecksum
impl Send for ContentChecksum
impl Sync for ContentChecksum
impl Unpin for ContentChecksum
impl UnwindSafe for ContentChecksum
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