pub struct ReceivedMessage {
pub peer: String,
pub device_id: String,
pub plaintext: Vec<u8>,
}Expand description
A message successfully decrypted by SessionManager::process_event.
Fields§
§peer: StringThe peer (owner) public key the session belongs to.
device_id: StringThe specific device id (device identity pubkey) that sent it.
plaintext: Vec<u8>The decrypted plaintext.
Trait Implementations§
Source§impl Clone for ReceivedMessage
impl Clone for ReceivedMessage
Source§fn clone(&self) -> ReceivedMessage
fn clone(&self) -> ReceivedMessage
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 ReceivedMessage
impl Debug for ReceivedMessage
impl Eq for ReceivedMessage
Source§impl PartialEq for ReceivedMessage
impl PartialEq for ReceivedMessage
impl StructuralPartialEq for ReceivedMessage
Auto Trait Implementations§
impl Freeze for ReceivedMessage
impl RefUnwindSafe for ReceivedMessage
impl Send for ReceivedMessage
impl Sync for ReceivedMessage
impl Unpin for ReceivedMessage
impl UnsafeUnpin for ReceivedMessage
impl UnwindSafe for ReceivedMessage
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