pub struct RatchetMessage {
pub dh: [u8; 32],
pub pn: u32,
pub n: u32,
pub ct: Vec<u8>,
}Expand description
One Double Ratchet message: a header carried as authenticated associated data, and an AEAD ciphertext.
Fields§
§dh: [u8; 32]The sender’s current ratchet public key.
pn: u32The length of the sender’s previous sending chain.
n: u32This message’s counter within the sender’s current chain.
ct: Vec<u8>The AEAD ciphertext.
Trait Implementations§
Source§impl Clone for RatchetMessage
impl Clone for RatchetMessage
Source§fn clone(&self) -> RatchetMessage
fn clone(&self) -> RatchetMessage
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RatchetMessage
impl Debug for RatchetMessage
Source§impl<'de> Deserialize<'de> for RatchetMessage
impl<'de> Deserialize<'de> for RatchetMessage
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for RatchetMessage
Source§impl PartialEq for RatchetMessage
impl PartialEq for RatchetMessage
Source§fn eq(&self, other: &RatchetMessage) -> bool
fn eq(&self, other: &RatchetMessage) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RatchetMessage
impl Serialize for RatchetMessage
impl StructuralPartialEq for RatchetMessage
Auto Trait Implementations§
impl Freeze for RatchetMessage
impl RefUnwindSafe for RatchetMessage
impl Send for RatchetMessage
impl Sync for RatchetMessage
impl Unpin for RatchetMessage
impl UnsafeUnpin for RatchetMessage
impl UnwindSafe for RatchetMessage
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