pub struct PlainMessageSharedKey(/* private fields */);Expand description
Plain message structure serialized via serde.
Trait Implementations§
Source§fn clone(&self) -> PlainMessageSharedKey
fn clone(&self) -> PlainMessageSharedKey
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§fn encrypt<S>(&self, shared_key: &S) -> Result<EncryptedMessage, Error>where
S: AsSharedKey,
fn encrypt<S>(&self, shared_key: &S) -> Result<EncryptedMessage, Error>where
S: AsSharedKey,
Encrypt into EncryptedMessage
Source§fn decrypt<S>(
encrypted_message: &EncryptedMessage,
shared_key: &S,
) -> Result<Self, Error>where
Self: Sized,
S: AsSharedKey,
fn decrypt<S>(
encrypted_message: &EncryptedMessage,
shared_key: &S,
) -> Result<Self, Error>where
Self: Sized,
S: AsSharedKey,
Decrypt from EncryptedMessage
Auto Trait Implementations§
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