Struct vodozemac::megolm::DecryptedMessage
source · 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
source§fn eq(&self, other: &DecryptedMessage) -> bool
fn eq(&self, other: &DecryptedMessage) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)