pub struct PlainMessageSharedKey(_);
Expand description
Plain message structure serialized via serde.
Trait Implementations
sourceimpl Clone for PlainMessageSharedKey
impl Clone for PlainMessageSharedKey
sourcefn clone(&self) -> PlainMessageSharedKey
fn clone(&self) -> PlainMessageSharedKey
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for PlainMessageSharedKey
impl Debug for PlainMessageSharedKey
sourcefn eq(&self, other: &PlainMessageSharedKey) -> bool
fn eq(&self, other: &PlainMessageSharedKey) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &PlainMessageSharedKey) -> bool
fn ne(&self, other: &PlainMessageSharedKey) -> bool
This method tests for !=
.
type R = RngSingletonImpl
type R = RngSingletonImpl
RNG singleton
sourcefn as_slice(&self) -> &[u8]ⓘNotable traits for &'_ [u8]impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
fn as_slice(&self) -> &[u8]ⓘNotable traits for &'_ [u8]impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
Ref to raw representation
sourcefn 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
sourcefn decrypt<S>(
encrypted_message: &EncryptedMessage,
shared_key: &S
) -> Result<Self, Error> where
S: AsSharedKey,
fn decrypt<S>(
encrypted_message: &EncryptedMessage,
shared_key: &S
) -> Result<Self, Error> where
S: AsSharedKey,
Decrypt from EncryptedMessage
impl Eq for PlainMessageSharedKey
impl StructuralEq for PlainMessageSharedKey
impl StructuralPartialEq for PlainMessageSharedKey
Auto Trait Implementations
impl RefUnwindSafe for PlainMessageSharedKey
impl Send for PlainMessageSharedKey
impl Sync for PlainMessageSharedKey
impl Unpin for PlainMessageSharedKey
impl UnwindSafe for PlainMessageSharedKey
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more