pub struct DecryptedMessage {
pub plaintext: Vec<u8>,
pub message_index: u32,
}
Expand description
A message successfully decrypted by an InboundGroupSession
.
Fields§
§plaintext: Vec<u8>
The decrypted plaintext of the message.
message_index: u32
The message index, used to detect replay attacks. Each plaintext message should be encrypted with a unique message index per session.
Trait Implementations§
Source§impl Clone for DecryptedMessage
impl Clone for DecryptedMessage
Source§fn clone(&self) -> DecryptedMessage
fn clone(&self) -> DecryptedMessage
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 DecryptedMessage
impl Debug for DecryptedMessage
Source§impl PartialEq for DecryptedMessage
impl PartialEq for DecryptedMessage
impl Eq for DecryptedMessage
impl StructuralPartialEq for DecryptedMessage
Auto Trait Implementations§
impl Freeze for DecryptedMessage
impl RefUnwindSafe for DecryptedMessage
impl Send for DecryptedMessage
impl Sync for DecryptedMessage
impl Unpin for DecryptedMessage
impl UnwindSafe for DecryptedMessage
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